Merge pull request #2104 from beeduck/Issue2053
Fix for players falling through world when loading in as spectator
This commit is contained in:
commit
31f66fd812
@ -129,6 +129,13 @@ cPlayer::cPlayer(cClientHandlePtr a_Client, const AString & a_PlayerName) :
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user