Units heading in generally opposite directions are now considered blockers; this fixes pathing deadlocks.
This commit is contained in:
@@ -66,7 +66,7 @@ namespace OpenRA.Mods.RA.Crates
|
||||
|
||||
for (var i = -1; i < 2; i++)
|
||||
for (var j = -1; j < 2; j++)
|
||||
if (mi.CanEnterCell(self.World, self.Owner, near + new CVec(i, j), null, true, true))
|
||||
if (mi.CanEnterCell(self.World, self, near + new CVec(i, j), null, true, true))
|
||||
yield return near + new CVec(i, j);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user