fix helis landing where they shouldnt

This commit is contained in:
Chris Forbes
2010-07-21 18:52:24 +12:00
parent 8cb6e0b229
commit 84e1ed1cf9

View File

@@ -27,9 +27,8 @@ namespace OpenRA.Mods.RA.Activities
if (unit.Altitude == 0) if (unit.Altitude == 0)
return NextActivity; return NextActivity;
// Todo: check if we can land here if (requireSpace && !self.traits.Get<IMove>().CanEnterCell(self.Location))
//if (requireSpace && !self.World.IsPathableCell(self.Location, UnitMovementType.Foot)) return this;
// return this; // fail to land if no space
--unit.Altitude; --unit.Altitude;
return this; return this;