Don't stop rearming if ordered to "Stop" while rearming

This one actually fixes a bug.
This commit is contained in:
Pavel Penev
2015-08-13 01:41:48 +03:00
parent 1ab2a781f1
commit 15a5bde7e7

View File

@@ -563,8 +563,14 @@ namespace OpenRA.Mods.Common.Traits
}
else if (order.OrderString == "Stop")
{
UnReserve();
self.CancelActivity();
if (GetActorBelow() != null)
{
self.QueueActivity(new ResupplyAircraft(self));
return;
}
UnReserve();
// TODO: Implement INotifyBecomingIdle instead
if (!IsPlane && Info.LandWhenIdle)