From 84e1ed1cf9cb22b8a32cc28593ff271938b04c81 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 21 Jul 2010 18:52:24 +1200 Subject: [PATCH] fix helis landing where they shouldnt --- OpenRA.Mods.RA/Activities/HeliLand.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/OpenRA.Mods.RA/Activities/HeliLand.cs b/OpenRA.Mods.RA/Activities/HeliLand.cs index a32086db0c..521e132e9b 100644 --- a/OpenRA.Mods.RA/Activities/HeliLand.cs +++ b/OpenRA.Mods.RA/Activities/HeliLand.cs @@ -27,10 +27,9 @@ namespace OpenRA.Mods.RA.Activities if (unit.Altitude == 0) return NextActivity; - // Todo: check if we can land here - //if (requireSpace && !self.World.IsPathableCell(self.Location, UnitMovementType.Foot)) - // return this; // fail to land if no space - + if (requireSpace && !self.traits.Get().CanEnterCell(self.Location)) + return this; + --unit.Altitude; return this; }