From 25bc3ae2d24265b18c4eaa7697ef3bb5cf7f1b1c Mon Sep 17 00:00:00 2001 From: tovl Date: Sun, 31 Mar 2019 01:25:54 +0100 Subject: [PATCH] Fix chinook being unable to land. --- OpenRA.Mods.Common/Traits/Air/Aircraft.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs index 17499bce81..ead3d2b774 100644 --- a/OpenRA.Mods.Common/Traits/Air/Aircraft.cs +++ b/OpenRA.Mods.Common/Traits/Air/Aircraft.cs @@ -575,7 +575,7 @@ namespace OpenRA.Mods.Common.Traits } else if (!Info.CanHover && !atLandAltitude) self.QueueActivity(new FlyCircle(self, -1, Info.IdleTurnSpeed > -1 ? Info.IdleTurnSpeed : TurnSpeed)); - else if (atLandAltitude && (Info.TakeOffOnResupply || ReservedActor == null)) + else if (atLandAltitude && !CanLand(self.Location) && ReservedActor == null) self.QueueActivity(new TakeOff(self)); else if (Info.CanHover && self.Info.HasTraitInfo() && Info.IdleTurnSpeed > -1) {