Use Targets

This commit is contained in:
alzeih
2010-07-26 12:33:54 +12:00
parent e8adc357e9
commit 526bb3e042
11 changed files with 17 additions and 25 deletions

View File

@@ -117,7 +117,7 @@ namespace OpenRA.Traits
w.Add(new MoveFlash(self.World, order.TargetLocation));
var line = self.traits.GetOrDefault<DrawLineToTarget>();
if (line != null)
line.SetTarget(self, order.TargetLocation, Color.Green);
line.SetTarget(self, Target.FromOrder(order), Color.Green);
});
if( !order.Queued ) self.CancelActivity();