Don't show kart team completely when spectate 1 in lobby
This commit is contained in:
parent
4d97c5156c
commit
23e4960fef
@ -823,7 +823,11 @@ void ClientLobby::updatePlayerList(Event* event)
|
|||||||
{
|
{
|
||||||
lp.m_user_name = _("%s (handicapped)", lp.m_user_name);
|
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
|
// No handicap for AI peer
|
||||||
if (!ai && lp.m_host_id == STKHost::get()->getMyHostId())
|
if (!ai && lp.m_host_id == STKHost::get()->getMyHostId())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user