summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorb33duck <b33duck@gmail.com>2015-05-23 01:30:23 +0200
committerb33duck <b33duck@gmail.com>2015-05-23 01:33:11 +0200
commitafb96c5bd6c5d85f0635151803a6d6030ac1fc12 (patch)
treee34bb2ef769cdbaf78fc0fecf24234e708bc0013 /src
parentAdded beeduck to contributors (diff)
downloadcuberite-afb96c5bd6c5d85f0635151803a6d6030ac1fc12.tar
cuberite-afb96c5bd6c5d85f0635151803a6d6030ac1fc12.tar.gz
cuberite-afb96c5bd6c5d85f0635151803a6d6030ac1fc12.tar.bz2
cuberite-afb96c5bd6c5d85f0635151803a6d6030ac1fc12.tar.lz
cuberite-afb96c5bd6c5d85f0635151803a6d6030ac1fc12.tar.xz
cuberite-afb96c5bd6c5d85f0635151803a6d6030ac1fc12.tar.zst
cuberite-afb96c5bd6c5d85f0635151803a6d6030ac1fc12.zip
Diffstat (limited to 'src')
-rw-r--r--src/Entities/Player.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 607a663de..aeda173fc 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -128,6 +128,13 @@ cPlayer::cPlayer(cClientHandlePtr a_Client, const AString & a_PlayerName) :
m_IsFlying = true;
}
}
+
+ if (m_GameMode == gmSpectator) // If player is reconnecting to the server in spectator mode
+ {
+ m_CanFly = true;
+ m_IsFlying = true;
+ m_bVisible = false;
+ }
cRoot::Get()->GetServer()->PlayerCreated(this);
}