Aircraft won't take off on terrain height change when idle

This commit is contained in:
EoralMilk
2023-07-05 16:53:39 +08:00
committed by Gustas
parent c7e0bc4c08
commit b944b21325

View File

@@ -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));