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

@@ -59,7 +59,7 @@ namespace OpenRA.Mods.RA
w.Add(new FlashTarget(order.TargetActor));
var line = self.traits.GetOrDefault<DrawLineToTarget>();
if (line != null)
line.SetTarget(self, order.TargetActor, Color.Yellow);
line.SetTarget(self, Target.FromOrder(order), Color.Yellow);
});
self.CancelActivity();