summaryrefslogtreecommitdiffstats
path: root/source/Player.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-07-28 22:55:09 +0200
committermadmaxoft <github@xoft.cz>2013-07-28 22:55:09 +0200
commit3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c (patch)
tree2294350370ff68bfe9c778ef1296506f1a6b0ff0 /source/Player.cpp
parentIgnoring all items beginning with "world". (diff)
downloadcuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar.gz
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar.bz2
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar.lz
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar.xz
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.tar.zst
cuberite-3bf4130e3fc05f84cf7be7e33656f3e29f0fe12c.zip
Diffstat (limited to '')
-rw-r--r--source/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Player.cpp b/source/Player.cpp
index c177b8cf4..c90f3c99c 100644
--- a/source/Player.cpp
+++ b/source/Player.cpp
@@ -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;