From 2566b446273e8cc1a97e9bebaf2e23943dbdca4d Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 15 Oct 2011 13:46:36 +1300 Subject: [PATCH] preserve whole CountryInfo object in ProductionQueue --- OpenRA.Mods.RA/Player/ProductionQueue.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OpenRA.Mods.RA/Player/ProductionQueue.cs b/OpenRA.Mods.RA/Player/ProductionQueue.cs index bbdc714660..ebf3117414 100755 --- a/OpenRA.Mods.RA/Player/ProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ProductionQueue.cs @@ -39,7 +39,7 @@ namespace OpenRA.Mods.RA public ProductionQueueInfo Info; PowerManager PlayerPower; PlayerResources playerResources; - string Race; + CountryInfo Race; // A list of things we are currently building public List Queue = new List(); @@ -67,7 +67,7 @@ namespace OpenRA.Mods.RA playerResources = playerActor.Trait(); PlayerPower = playerActor.Trait(); - Race = self.Owner.Country.Race; + Race = self.Owner.Country; Produceable = InitTech(playerActor); } @@ -110,7 +110,7 @@ namespace OpenRA.Mods.RA { var bi = a.Traits.Get(); // Can our race build this by satisfying normal prereqs? - var buildable = bi.Owner.Contains(Race); + var buildable = bi.Owner.Contains(Race.Race); tech.Add(a, new ProductionState() { Visible = buildable && !bi.Hidden }); if (buildable) ttc.Add(a.Name, a.Traits.Get().Prerequisites.ToList(), this);