works *without* aftermath again.

This commit is contained in:
Chris Forbes
2009-11-26 20:49:54 +13:00
parent 9166029fc8
commit 1948e16a3f
5 changed files with 32 additions and 20 deletions

View File

@@ -45,8 +45,8 @@ namespace OpenRa.Game.Traits.Activities
umt = mobile.GetMovementType(),
checkForBlocked = false,
};
var refineries = Game.world.Actors.Where( x => x.unitInfo != null
&& x.unitInfo.Name == "proc" && x.Owner == self.Owner ).ToList();
var refineries = Game.world.Actors.Where( x => x.traits.Contains<AcceptsOre>()
&& x.Owner == self.Owner ).ToList();
if( refinery != null )
search.AddInitialCell( refinery.Location + refineryDeliverOffset );
else