From b87020f93fddb9a6e475c8f19c7e28cc894f9760 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 9 Jul 2016 12:05:41 +0100 Subject: [PATCH] Order landed aircraft to take off if their reservation is cancelled. --- OpenRA.Mods.Common/Traits/Air/Aircraft.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs index 660bd39e67..c9ac2ad0bc 100644 --- a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs +++ b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs @@ -271,6 +271,8 @@ namespace OpenRA.Mods.Common.Traits reservation.Dispose(); reservation = null; + if (self.World.Map.DistanceAboveTerrain(CenterPosition).Length <= Info.LandAltitude.Length) + self.QueueActivity(new TakeOff(self)); } public bool AircraftCanEnter(Actor a)