summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornesco <emmanuel@federbusch.fr>2014-09-16 20:17:35 +0200
committernesco <emmanuel@federbusch.fr>2014-09-16 20:17:35 +0200
commit89c9aec5da5adfcaee06df9979bc701579d19f6d (patch)
treec675c5b72a1a1dbb54ca0b66e668405e360203bc
parentPreparing 1.8 update (diff)
downloadcuberite-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 '')
-rw-r--r--src/Entities/Player.cpp3
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;