Fix random country display.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user