Fixed players head visible when in spectator mode
This commit is contained in:
parent
d7aa1c0434
commit
906288c6eb
@ -1205,6 +1205,15 @@ void cPlayer::SetGameMode(eGameMode a_GameMode)
|
||||
SetCanFly(false);
|
||||
}
|
||||
|
||||
if (IsGameModeSpectator() && IsVisible())
|
||||
{
|
||||
SetVisible(false);
|
||||
}
|
||||
else if (!IsVisible())
|
||||
{
|
||||
SetVisible(true);
|
||||
}
|
||||
|
||||
m_World->BroadcastPlayerListUpdateGameMode(*this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user