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:
@@ -307,8 +307,7 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
|
|
||||||
self.QueueActivity(order.Queued, new DeliverUnit(self, Info.DropRange));
|
self.QueueActivity(order.Queued, new DeliverUnit(self, Info.DropRange));
|
||||||
}
|
}
|
||||||
|
else if (order.OrderString == "PickupUnit")
|
||||||
if (order.OrderString == "PickupUnit")
|
|
||||||
{
|
{
|
||||||
if (order.Target.Type != TargetType.Actor)
|
if (order.Target.Type != TargetType.Actor)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user