Some initial hacks towards multiple-infantry-per-cell. Make the pathfinder smart enough to do what we need, and remove a *lot* of stupid duplication. Needs more work.
This commit is contained in:
@@ -38,8 +38,9 @@ namespace OpenRA.Mods.RA.Activities
|
||||
if (unit.Altitude == 0)
|
||||
return NextActivity;
|
||||
|
||||
if (requireSpace && !self.World.IsPathableCell(self.Location, UnitMovementType.Foot))
|
||||
return this; // fail to land if no space
|
||||
// Todo: check if we can land here
|
||||
//if (requireSpace && !self.World.IsPathableCell(self.Location, UnitMovementType.Foot))
|
||||
// return this; // fail to land if no space
|
||||
|
||||
--unit.Altitude;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user