summaryrefslogtreecommitdiffstats
path: root/src/Entities
diff options
context:
space:
mode:
authorJonathan Fabian <jonfabe@github>2014-12-03 02:54:56 +0100
committerJonathan Fabian <jonfabe@github>2014-12-03 02:54:56 +0100
commit1e6c13ea51061be078f705135a0183f38d3f0bdd (patch)
tree92b76df68aad1a12e2676a571661a501f023e8eb /src/Entities
parentAdd missing IsSpectatorMode() checks in Player.cpp, make sure that player is flying when spawned otherwise it will fall through the world. (diff)
downloadcuberite-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 'src/Entities')
-rw-r--r--src/Entities/Player.cpp10
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);