WithLandingCraftAnimation can stop on all movement

This commit is contained in:
dnqbob
2020-07-28 22:06:22 +08:00
committed by reaperrr
parent 1ae53220d6
commit f67f8ed05e

View File

@@ -56,7 +56,7 @@ namespace OpenRA.Mods.Cnc.Traits.Render
public bool ShouldBeOpen()
{
if (move.CurrentMovementTypes.HasFlag(MovementType.Horizontal) || self.World.Map.DistanceAboveTerrain(self.CenterPosition).Length > 0)
if (move.CurrentMovementTypes != MovementType.None || self.World.Map.DistanceAboveTerrain(self.CenterPosition).Length > 0)
return false;
return cargo.CurrentAdjacentCells.Any(c => self.World.Map.Contains(c)