unreserve when not queued

This commit is contained in:
tovl
2019-02-22 19:59:13 +01:00
committed by Paul Chote
parent 2975738477
commit dc9c758f12

View File

@@ -838,6 +838,9 @@ namespace OpenRA.Mods.Common.Traits
} }
else if (order.OrderString == "ReturnToBase" && rearmableInfo != null && rearmableInfo.RearmActors.Any()) else if (order.OrderString == "ReturnToBase" && rearmableInfo != null && rearmableInfo.RearmActors.Any())
{ {
if (!order.Queued)
UnReserve();
if (!Info.CanHover) if (!Info.CanHover)
self.QueueActivity(order.Queued, new ReturnToBase(self, Info.AbortOnResupply, null, false)); self.QueueActivity(order.Queued, new ReturnToBase(self, Info.AbortOnResupply, null, false));
else else