Don't stop rearming if ordered to "Stop" while rearming
This one actually fixes a bug.
This commit is contained in:
@@ -563,8 +563,14 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
}
|
}
|
||||||
else if (order.OrderString == "Stop")
|
else if (order.OrderString == "Stop")
|
||||||
{
|
{
|
||||||
UnReserve();
|
|
||||||
self.CancelActivity();
|
self.CancelActivity();
|
||||||
|
if (GetActorBelow() != null)
|
||||||
|
{
|
||||||
|
self.QueueActivity(new ResupplyAircraft(self));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
UnReserve();
|
||||||
|
|
||||||
// TODO: Implement INotifyBecomingIdle instead
|
// TODO: Implement INotifyBecomingIdle instead
|
||||||
if (!IsPlane && Info.LandWhenIdle)
|
if (!IsPlane && Info.LandWhenIdle)
|
||||||
|
|||||||
Reference in New Issue
Block a user