1
0
Fork 0

Added a fix for players falling through the world when connecting in spectator mode

This commit is contained in:
b33duck 2015-05-22 16:30:23 -07:00
parent d7aa1c0434
commit afb96c5bd6
1 changed files with 7 additions and 0 deletions

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