From 8f62ce9b25759d8f78518522becf7a879c17255b Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 16 Jul 2011 20:15:58 +1200 Subject: [PATCH] Show `-' instead of 0 for unteamed players in the objectives panel. --- OpenRA.Mods.Cnc/Widgets/Logic/CncConquestObjectivesLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Cnc/Widgets/Logic/CncConquestObjectivesLogic.cs b/OpenRA.Mods.Cnc/Widgets/Logic/CncConquestObjectivesLogic.cs index 3b49c9ab36..ac5b6bbca6 100644 --- a/OpenRA.Mods.Cnc/Widgets/Logic/CncConquestObjectivesLogic.cs +++ b/OpenRA.Mods.Cnc/Widgets/Logic/CncConquestObjectivesLogic.cs @@ -63,7 +63,7 @@ namespace OpenRA.Mods.Cnc.Widgets.Logic item.GetWidget("FACTION").GetText = () => pp.Country.Name; var team = item.GetWidget("TEAM"); - team.GetText = () => c.Team.ToString(); + team.GetText = () => (c.Team == 0) ? "-" : c.Team.ToString(); scrollpanel.AddChild(item); item.GetWidget("KILLS").GetText = () => pp.Kills.ToString();