1
0

Fixed players head visible when in spectator mode

This commit is contained in:
b33duck 2015-05-22 12:25:16 -07:00
parent d7aa1c0434
commit 906288c6eb

View File

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