summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-23 10:51:41 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-23 10:51:41 +0100
commit9c796bf6b42b54ce5efe294c03ffd28366917805 (patch)
tree625e0a66d1a1e41221c4de29bc9fd5ef30fc1646 /src/Entities
parentFixed a comment in Entity.cpp (diff)
downloadcuberite-9c796bf6b42b54ce5efe294c03ffd28366917805.tar
cuberite-9c796bf6b42b54ce5efe294c03ffd28366917805.tar.gz
cuberite-9c796bf6b42b54ce5efe294c03ffd28366917805.tar.bz2
cuberite-9c796bf6b42b54ce5efe294c03ffd28366917805.tar.lz
cuberite-9c796bf6b42b54ce5efe294c03ffd28366917805.tar.xz
cuberite-9c796bf6b42b54ce5efe294c03ffd28366917805.tar.zst
cuberite-9c796bf6b42b54ce5efe294c03ffd28366917805.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index aedd3b77e..0c133d3fa 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -987,8 +987,11 @@ void cPlayer::SetGameMode(eGameMode a_GameMode)
m_GameMode = a_GameMode;
m_ClientHandle->SendGameMode(a_GameMode);
- SetFlying(false);
- SetCanFly(false);
+ if (a_GameMode != gmCreative)
+ {
+ SetFlying(false);
+ SetCanFly(false);
+ }
}