summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-07-30 14:48:18 +0200
committermadmaxoft <github@xoft.cz>2013-07-30 14:48:18 +0200
commitfedb803acb8769db458aee3876a5a934c077c298 (patch)
treeb388cbdfbc03214dfe473fc01ceba0179b25b3a2
parentAdded the "Edit Sign" packet sent to the client placing a sign. (diff)
downloadcuberite-fedb803acb8769db458aee3876a5a934c077c298.tar
cuberite-fedb803acb8769db458aee3876a5a934c077c298.tar.gz
cuberite-fedb803acb8769db458aee3876a5a934c077c298.tar.bz2
cuberite-fedb803acb8769db458aee3876a5a934c077c298.tar.lz
cuberite-fedb803acb8769db458aee3876a5a934c077c298.tar.xz
cuberite-fedb803acb8769db458aee3876a5a934c077c298.tar.zst
cuberite-fedb803acb8769db458aee3876a5a934c077c298.zip
-rw-r--r--source/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Player.cpp b/source/Player.cpp
index ac74f03b8..d59204e35 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 >= gmMin) || (a_GameMode < gmMax))
+ if ((a_GameMode < gmMin) || (a_GameMode >= gmMax))
{
LOGWARNING("%s: Setting invalid gamemode: %d", GetName().c_str(), a_GameMode);
return;