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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user