From 0080e98390b1de94c48e460a60b30460ebb9e669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 25 Sep 2022 10:22:53 +0200 Subject: [PATCH] Fix No Players No Bots No Spectators label overlapping. --- OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs index 8e0c51cc28..bb0a80040e 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/ServerListLogic.cs @@ -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()