Fix team 0 being translated in SpawnSelectorTooltipLogic

This commit is contained in:
Gustas
2022-09-07 20:57:48 +03:00
committed by abcdefg30
parent 1b00cef30f
commit 9ae27b8e60

View File

@@ -92,7 +92,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
flag.IsVisible = () => playerFaction != null;
flag.GetImageCollection = () => "flags";
flag.GetImageName = () => playerFaction;
team.GetText = () => teamMessage.Update(playerTeam);
team.GetText = () => playerTeam > 0 ? teamMessage.Update(playerTeam) : "";
team.IsVisible = () => playerTeam > 0;
}
}