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