Fix No Players No Bots No Spectators label overlapping.

This commit is contained in:
Matthias Mailänder
2022-09-25 10:22:53 +02:00
committed by Gustas
parent 7b7ccf4128
commit 0080e98390

View File

@@ -417,9 +417,15 @@ namespace OpenRA.Mods.Common.Widgets.Logic
string PlayerLabel(GameServer game)
{
return players.Update(game.Players)
+ bots.Update(game.Bots)
+ spectators.Update(game.Spectators);
var label = players.Update(game.Players);
if (game.Bots > 0)
label += " " + bots.Update(game.Bots);
if (game.Spectators > 0)
label += " " + spectators.Update(game.Spectators);
return label;
}
public void RefreshServerList()