AttackBase ResolveOrder optimization
Only check for "Stop" when the other 'if' didn't apply.
This commit is contained in:
@@ -204,8 +204,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
AttackTarget(order.Target, AttackSource.Default, order.Queued, true, forceAttack, Info.TargetLineColor);
|
AttackTarget(order.Target, AttackSource.Default, order.Queued, true, forceAttack, Info.TargetLineColor);
|
||||||
self.ShowTargetLines();
|
self.ShowTargetLines();
|
||||||
}
|
}
|
||||||
|
else if (order.OrderString == "Stop")
|
||||||
if (order.OrderString == "Stop")
|
|
||||||
OnStopOrder(self);
|
OnStopOrder(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user