Remove a pile of duplication from target lines.

Remove MoveFlash.
This commit is contained in:
Paul Chote
2010-11-26 14:30:33 +13:00
parent 5f43923b80
commit b423889c06
21 changed files with 62 additions and 251 deletions

View File

@@ -73,12 +73,7 @@ namespace OpenRA.Mods.RA.Activities
mobile.SetPosition(actor, self.Location);
actor.CancelActivity();
actor.QueueActivity(mobile.MoveTo(exitTile.Value, 0));
if (actor.Owner == self.World.LocalPlayer)
{
var line = actor.TraitOrDefault<DrawLineToTarget>();
if (line != null)
line.SetTargetSilently(self, Target.FromCell(exitTile.Value), Color.Green);
}
actor.SetTargetLine(Target.FromCell(exitTile.Value), Color.Green, false);
});
return this;