don't show order lines when selecting idle (attackmoving) actors

closes #5039
This commit is contained in:
Matthias Mailänder
2014-05-16 16:46:20 +02:00
parent 28c0310357
commit 7b90d321a7
2 changed files with 4 additions and 1 deletions

View File

@@ -44,7 +44,6 @@ namespace OpenRA.Mods.RA
{
self.CancelActivity();
self.QueueActivity(new AttackMoveActivity(self, move.MoveTo(TargetLocation.Value, 1)));
self.SetTargetLine(Target.FromCell(TargetLocation.Value), Color.Red);
}
public void TickIdle(Actor self)
@@ -60,6 +59,7 @@ namespace OpenRA.Mods.RA
if (order.OrderString == "AttackMove")
{
TargetLocation = move.NearestMoveableCell(order.TargetLocation);
self.SetTargetLine(Target.FromCell(TargetLocation.Value), Color.Red);
Activate(self);
}
}