From b944b21325c1277fddfb82be58fc5125013146c6 Mon Sep 17 00:00:00 2001 From: EoralMilk <1322028031@qq.com> Date: Wed, 5 Jul 2023 16:53:39 +0800 Subject: [PATCH] Aircraft won't take off on terrain height change when idle --- OpenRA.Mods.Common/Traits/Air/Aircraft.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs index 7809f8ec68..18c2074edb 100644 --- a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs +++ b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs @@ -763,9 +763,7 @@ namespace OpenRA.Mods.Common.Traits return; } - if (Info.IdleBehavior != IdleBehaviorType.Land && dat != Info.CruiseAltitude) - self.QueueActivity(new TakeOff(self)); - else if (Info.IdleBehavior == IdleBehaviorType.Land && Info.LandableTerrainTypes.Count > 0) + if (Info.IdleBehavior == IdleBehaviorType.Land && Info.LandableTerrainTypes.Count > 0) self.QueueActivity(new Land(self)); else self.QueueActivity(new FlyIdle(self));