From dd3c600258434ed3ad575d755db58a84a1ad4eaa Mon Sep 17 00:00:00 2001 From: reaperrr Date: Sun, 26 Aug 2018 14:09:51 +0200 Subject: [PATCH] Fix WithLandingCraftAnimation compatibility with elevated terrain --- OpenRA.Mods.Cnc/Traits/Render/WithLandingCraftAnimation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Cnc/Traits/Render/WithLandingCraftAnimation.cs b/OpenRA.Mods.Cnc/Traits/Render/WithLandingCraftAnimation.cs index f4af493cf0..c28c247662 100644 --- a/OpenRA.Mods.Cnc/Traits/Render/WithLandingCraftAnimation.cs +++ b/OpenRA.Mods.Cnc/Traits/Render/WithLandingCraftAnimation.cs @@ -50,7 +50,7 @@ namespace OpenRA.Mods.Cnc.Traits.Render public bool ShouldBeOpen() { - if (move.IsMoving || self.CenterPosition.Z > 0) + if (move.IsMoving || self.World.Map.DistanceAboveTerrain(self.CenterPosition).Length > 0) return false; return cargo.CurrentAdjacentCells.Any(c => self.World.Map.Contains(c)