diff options
author | Jonathan Fabian <jonfabe@github> | 2014-12-03 02:54:56 +0100 |
---|---|---|
committer | Jonathan Fabian <jonfabe@github> | 2014-12-03 02:54:56 +0100 |
commit | 1e6c13ea51061be078f705135a0183f38d3f0bdd (patch) | |
tree | 92b76df68aad1a12e2676a571661a501f023e8eb | |
parent | Add missing IsSpectatorMode() checks in Player.cpp, make sure that player is flying when spawned otherwise it will fall through the world. (diff) | |
download | cuberite-1e6c13ea51061be078f705135a0183f38d3f0bdd.tar cuberite-1e6c13ea51061be078f705135a0183f38d3f0bdd.tar.gz cuberite-1e6c13ea51061be078f705135a0183f38d3f0bdd.tar.bz2 cuberite-1e6c13ea51061be078f705135a0183f38d3f0bdd.tar.lz cuberite-1e6c13ea51061be078f705135a0183f38d3f0bdd.tar.xz cuberite-1e6c13ea51061be078f705135a0183f38d3f0bdd.tar.zst cuberite-1e6c13ea51061be078f705135a0183f38d3f0bdd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/Player.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp index e422d4042..e066df1bd 100644 --- a/src/Entities/Player.cpp +++ b/src/Entities/Player.cpp @@ -120,11 +120,11 @@ cPlayer::cPlayer(cClientHandle* a_Client, const AString & a_PlayerName) : { m_CanFly = true; } - if (World->IsGameModeSpectator()) //Otherwise Player will fall out of the world on join - { - m_CanFly = true; - m_IsFlying = true; - } + if (World->IsGameModeSpectator()) //Otherwise Player will fall out of the world on join + { + m_CanFly = true; + m_IsFlying = true; + } } cRoot::Get()->GetServer()->PlayerCreated(this); |