Revert "Fix bogus pathability check."

This reverts commit 8676562d47.
This commit is contained in:
Chris Forbes
2013-04-21 13:58:10 +12:00
parent f40fbaf35e
commit a13f9ea3eb

View File

@@ -109,8 +109,7 @@ namespace OpenRA.Mods.RA.Move
return true;
var blockingActors = world.ActorMap.GetUnitsAt(cell)
// Don't fail if the unit is already in this cell
.Where(x => x != ignoreActor && x != self)
.Where(x => x != ignoreActor)
// Neutral/enemy units are blockers. Allied units that are moving are not blockers.
.Where(x => blockedByMovers || ((self.Owner.Stances[x.Owner] != Stance.Ally) || !IsMovingInMyDirection(self, x)))
.ToList();