Carryall ResolveOrder optimization

There can be only one OrderString at a time,
so we make 'PickupUnit' an "else if", too.
This commit is contained in:
reaperrr
2020-02-20 03:19:58 +01:00
committed by Paul Chote
parent 1e43a8f590
commit b524dc9b72

View File

@@ -307,8 +307,7 @@ namespace OpenRA.Mods.Common.Traits
self.QueueActivity(order.Queued, new DeliverUnit(self, Info.DropRange));
}
if (order.OrderString == "PickupUnit")
else if (order.OrderString == "PickupUnit")
{
if (order.Target.Type != TargetType.Actor)
return;