From a17af87a5ea2b6a5f60bb92f8fd6a9270d246d95 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Fri, 18 Jun 2021 17:52:00 +0200 Subject: [PATCH] Fix aircraft with TakeOffOnCreation=false not freeing exit ...when another actor gets produced. --- OpenRA.Mods.Common/Traits/Air/Aircraft.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs index 397cfa1fed..12ebd8ce06 100644 --- a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs +++ b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs @@ -1249,7 +1249,11 @@ namespace OpenRA.Mods.Common.Traits public override bool Tick(Actor self) { if (!aircraft.Info.TakeOffOnCreation) + { + // Freshly created aircraft shouldn't block the exit, so we allow them to yield their reservation + aircraft.AllowYieldingReservation(); return true; + } if (self.World.Map.DistanceAboveTerrain(aircraft.CenterPosition).Length <= aircraft.LandAltitude.Length) QueueChild(new TakeOff(self));