unreserve when not queued
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user