1
0

Player eating is now properly broadcast to other players.

Also fixed the API relating to food, determining player gamemode, and removed several unneeded API functions.
This commit is contained in:
madmaxoft
2013-07-28 22:55:09 +02:00
parent afa19d3bb4
commit 3bf4130e3f
6 changed files with 343 additions and 179 deletions

View File

@@ -705,7 +705,7 @@ void cPlayer::SetLastBlockActionCnt( int a_LastBlockActionCnt )
void cPlayer::SetGameMode(eGameMode a_GameMode)
{
if ((a_GameMode >= 3) || (a_GameMode < 0))
if ((a_GameMode >= gmMin) || (a_GameMode < gmMax))
{
LOGWARNING("%s: Setting invalid gamemode: %d", GetName().c_str(), a_GameMode);
return;