Poprawiłem byłem dyslektykiem dawno temu, może mi coś zostało. Staram sie pisać bez błędów ortograficznych,aktualnie nie używam polskiego aspella (bo jak sie nauczyć jak widzimy od razu błędy, robi to z nas debili) i nie pracuje pod polskim systemem. Dziękuję, że zwróciłeś uwagę zapamiętamkłócić, wybacz, aż bije po oczach.
bool Game:layerFollowCreature(uint32_t playerId, uint32_t creatureId)
{
Player* player = getPlayerByID(playerId);
if(!player || player->isRemoved())
return false;
if(player->hasCondition(CONDITION_EXHAUST, EXHAUST_FLOODX) && creatureId > 0)
{
return false;
}
player->addExhaust(100, EXHAUST_FLOODX);
Creature* followCreature = NULL;
if(creatureId)
followCreature = getCreatureByID(creatureId);
player->setAttackedCreature(NULL);
Dispatcher::getInstance().addTask(createTask(boost::bind(
&Game::updateCreatureWalk, this, player->getID())));
return player->setFollowCreature(followCreature);
}
Configure complete, now you may type './build.sh'.
make all-am
make[1]: Entering directory `/home/ots'
g++ -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -O2 -fomit-frame-pointer -D__USE_MYSQL__ -D__WAR_SYSTEM__ -D__ENABLE_SERVER_DIAGNOSTIC__ -D_THREAD_SAFE -D_REENTRANT -Wall -Wextra -Werror -Wno-strict-aliasing -Wno-unused-parameter -pipe -MT game.o -MD -MP -MF .deps/game.Tpo -c -o game.o game.cpp
game.cpp: In member function 'bool Game:layerFollowCreature(uint32_t, uint32_t)':
game.cpp:3601: error: 'EXHAUST_FLOODX' was not declared in this scope
game.cpp:3605: error: 'EXHAUST_FLOODX' was not declared in this scope
make[1]: *** [game.o] Error 1
make[1]: Leaving directory `/home/ots'
make: *** [all] Error 2