diff options
author | nesco <emmanuel@federbusch.fr> | 2014-09-16 20:17:35 +0200 |
---|---|---|
committer | nesco <emmanuel@federbusch.fr> | 2014-09-16 20:17:35 +0200 |
commit | 89c9aec5da5adfcaee06df9979bc701579d19f6d (patch) | |
tree | c675c5b72a1a1dbb54ca0b66e668405e360203bc /src/Entities | |
parent | Preparing 1.8 update (diff) | |
download | cuberite-89c9aec5da5adfcaee06df9979bc701579d19f6d.tar cuberite-89c9aec5da5adfcaee06df9979bc701579d19f6d.tar.gz cuberite-89c9aec5da5adfcaee06df9979bc701579d19f6d.tar.bz2 cuberite-89c9aec5da5adfcaee06df9979bc701579d19f6d.tar.lz cuberite-89c9aec5da5adfcaee06df9979bc701579d19f6d.tar.xz cuberite-89c9aec5da5adfcaee06df9979bc701579d19f6d.tar.zst cuberite-89c9aec5da5adfcaee06df9979bc701579d19f6d.zip |
Diffstat (limited to 'src/Entities')
-rw-r--r-- | src/Entities/Player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index 81250bd40..0f15ba620 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -1166,7 +1166,7 @@ void cPlayer::SetGameMode(eGameMode a_GameMode) m_GameMode = a_GameMode; m_ClientHandle->SendGameMode(a_GameMode); - if (!IsGameModeCreative()) + if (!(IsGameModeCreative() || IsGameModeSpectator())) { SetFlying(false); SetCanFly(false); @@ -1348,6 +1348,7 @@ void cPlayer::MoveTo( const Vector3d & a_NewPos) void cPlayer::SetVisible(bool a_bVisible) { + // Need to Check if this or other players are in gamemode spectator if (a_bVisible && !m_bVisible) // Make visible { m_bVisible = true; |