1
0

Merge pull request #2104 from beeduck/Issue2053

Fix for players falling through world when loading in as spectator
This commit is contained in:
Alexander Harkness 2015-05-23 07:27:04 +01:00
commit 31f66fd812

View File

@ -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);
}