Show `-' instead of 0 for unteamed players in the objectives panel.

This commit is contained in:
Paul Chote
2011-07-16 20:15:58 +12:00
parent ee3be9c89b
commit 8f62ce9b25

View File

@@ -63,7 +63,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic
item.GetWidget<LabelWidget>("FACTION").GetText = () => pp.Country.Name;
var team = item.GetWidget<LabelWidget>("TEAM");
team.GetText = () => c.Team.ToString();
team.GetText = () => (c.Team == 0) ? "-" : c.Team.ToString();
scrollpanel.AddChild(item);
item.GetWidget<LabelWidget>("KILLS").GetText = () => pp.Kills.ToString();