[wpdev-commits] wolfpack timing.cpp,1.18,1.19
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-10-14 02:02:40
|
Update of /cvsroot/wpdev/wolfpack In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16340 Modified Files: timing.cpp Log Message: hunger fix Index: timing.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/timing.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** timing.cpp 11 Oct 2004 19:03:42 -0000 1.18 --- timing.cpp 14 Oct 2004 02:02:28 -0000 1.19 *************** *** 410,436 **** } - // All food related things are disabled for gms - if ( player->isGMorCounselor() ) - { - // Decrease food level - if ( Config::instance()->hungerRate() > 1 && ( player->hungerTime() <= time ) ) - { - if ( player->hunger() ) - player->setHunger( player->hunger() - 1 ); - - player->setHungerTime( time + Config::instance()->hungerRate() * MY_CLOCKS_PER_SEC ); - } - - // Damage if we are starving - if ( Config::instance()->hungerDamage() && nextHungerCheck <= time ) - { - if ( player->hitpoints() > 0 && player->hunger() < 2 && !player->isDead() ) - { - socket->sysMessage( tr( "You are starving." ) ); - player->damage( DAMAGE_HUNGER, Config::instance()->hungerDamage() ); - } - } - } - stopProfiling(PF_PLAYERCHECK); } --- 410,413 ---- |