Use the rendered resource state for the harvest order targeter.

This commit is contained in:
Paul Chote
2013-07-24 20:34:36 +12:00
parent ff4a600d94
commit a09bcbd47a
2 changed files with 2 additions and 1 deletions

View File

@@ -433,7 +433,7 @@ namespace OpenRA.Mods.RA
if (!self.Owner.Shroud.IsExplored(location))
return false;
var res = self.World.WorldActor.Trait<ResourceLayer>().GetResource(location);
var res = self.World.WorldActor.Trait<ResourceLayer>().GetRenderedResource(location);
var info = self.Info.Traits.Get<HarvesterInfo>();
if (res == null || !info.Resources.Contains(res.info.Name))