Fix carryall not removing influence when cancelling land activity
This commit is contained in:
committed by
Matthias Mailänder
parent
b401f601de
commit
5db07097e8
@@ -73,6 +73,15 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
if (carryall.State == Carryall.CarryallState.Reserved)
|
if (carryall.State == Carryall.CarryallState.Reserved)
|
||||||
carryall.UnreserveCarryable(self);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user