Fix carryall not removing influence when cancelling land activity

This commit is contained in:
Gustas
2022-10-29 14:23:44 +03:00
committed by Matthias Mailänder
parent b401f601de
commit 5db07097e8

View File

@@ -73,6 +73,15 @@ namespace OpenRA.Mods.Common.Activities
if (carryall.State == Carryall.CarryallState.Reserved)
carryall.UnreserveCarryable(self);
// Make sure we run the TakeOff activity if we are / have landed
if (self.Trait<Aircraft>().HasInfluence())
{
ChildHasPriority = true;
IsInterruptible = false;
QueueChild(new TakeOff(self));
return false;
}
return true;
}