summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-25 00:47:04 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-25 00:47:04 +0100
commit508e505aced6f80a0ed1f3d89495add658b11956 (patch)
tree3cba9755c56b8332da5945c13eeb8676af0ae38c /src
parentFixed comments in main.cpp and Player.cpp (diff)
downloadcuberite-508e505aced6f80a0ed1f3d89495add658b11956.tar
cuberite-508e505aced6f80a0ed1f3d89495add658b11956.tar.gz
cuberite-508e505aced6f80a0ed1f3d89495add658b11956.tar.bz2
cuberite-508e505aced6f80a0ed1f3d89495add658b11956.tar.lz
cuberite-508e505aced6f80a0ed1f3d89495add658b11956.tar.xz
cuberite-508e505aced6f80a0ed1f3d89495add658b11956.tar.zst
cuberite-508e505aced6f80a0ed1f3d89495add658b11956.zip
Diffstat (limited to 'src')
-rw-r--r--src/Entities/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 6d199e130..a4b580b00 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -984,7 +984,7 @@ void cPlayer::SetGameMode(eGameMode a_GameMode)
m_GameMode = a_GameMode;
m_ClientHandle->SendGameMode(a_GameMode);
- if (a_GameMode != gmCreative)
+ if (!IsGameModeCreative())
{
SetFlying(false);
SetCanFly(false);