Don't let the player interrupt takeoff after a succesful caryall pickup

This commit is contained in:
Gustas
2022-11-05 20:07:30 +02:00
committed by Matthias Mailänder
parent 5db07097e8
commit ad269555d9

View File

@@ -121,6 +121,10 @@ namespace OpenRA.Mods.Common.Activities
} }
} }
// We don't want to allow TakeOff to be cancelled
if (ChildActivity is TakeOff)
ChildHasPriority = true;
// Return once we are in the pickup state and the pickup activities have completed // Return once we are in the pickup state and the pickup activities have completed
return TickChild(self) && state == PickupState.Pickup; return TickChild(self) && state == PickupState.Pickup;
} }