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)
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<IMove>().CanEnterCell(self.Location))
return this;
--unit.Altitude;
return this;