Mobile ResolveOrder optimization

When the order is "Move", the other two 'if' checks
are redundant, so 'else if' makes more sense here.
This commit is contained in:
reaperrr
2020-02-20 03:23:05 +01:00
committed by Paul Chote
parent b524dc9b72
commit da4ed24064

View File

@@ -952,10 +952,9 @@ namespace OpenRA.Mods.Common.Traits
}
// TODO: This should only cancel activities queued by this trait
if (order.OrderString == "Stop")
else if (order.OrderString == "Stop")
self.CancelActivity();
if (order.OrderString == "Scatter")
else if (order.OrderString == "Scatter")
Nudge(self);
}