Don't show kart team completely when spectate 1 in lobby

This commit is contained in:
Benau 2020-10-06 07:00:57 +08:00
parent 4d97c5156c
commit 23e4960fef

View File

@ -823,7 +823,11 @@ void ClientLobby::updatePlayerList(Event* event)
{
lp.m_user_name = _("%s (handicapped)", lp.m_user_name);
}
lp.m_kart_team = (KartTeam)data.getUInt8();
KartTeam team = (KartTeam)data.getUInt8();
if (is_spectator)
lp.m_kart_team = KART_TEAM_NONE;
else
lp.m_kart_team = team;
// No handicap for AI peer
if (!ai && lp.m_host_id == STKHost::get()->getMyHostId())
{