Fix WithLandingCraftAnimation compatibility with elevated terrain

This commit is contained in:
reaperrr
2018-08-26 14:09:51 +02:00
committed by Paul Chote
parent a7de079a53
commit dd3c600258

View File

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