fix helis landing where they shouldnt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user