Fix random country display.

This commit is contained in:
Paul Chote
2015-04-20 03:29:18 +12:00
parent 9df371b393
commit 3cfa96e7a6
5 changed files with 11 additions and 12 deletions

View File

@@ -467,7 +467,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var flag = template.Get<ImageWidget>("FLAG");
flag.GetImageCollection = () => "flags";
if (player.World.RenderPlayer != null && player.World.RenderPlayer.Stances[player] != Stance.Ally)
flag.GetImageName = () => player.PlayerReference.RaceFlagName;
flag.GetImageName = () => player.DisplayCountry.Race;
else
flag.GetImageName = () => player.Country.Race;