AttackBase ResolveOrder optimization

Only check for "Stop" when the other 'if' didn't apply.
This commit is contained in:
reaperrr
2020-02-20 11:57:33 +01:00
committed by Paul Chote
parent da4ed24064
commit 226159d220

View File

@@ -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);
} }