Merge pull request #7045 from Gishten/bleed

Closes #6989
This commit is contained in:
Matthias Mailänder
2014-12-06 20:54:50 +01:00
3 changed files with 17 additions and 12 deletions

View File

@@ -69,9 +69,14 @@ namespace OpenRA.Mods.RA.Move
return emptyPath;
}
var fromPoint = PathSearch.FromPoint(world, mi, self, target, from, true)
.WithIgnoredActor(self);
var fromPointReverse = PathSearch.FromPoint(world, mi, self, from, target, true)
.WithIgnoredActor(self)
.Reverse();
var pb = FindBidiPath(
PathSearch.FromPoint(world, mi, self, target, from, true),
PathSearch.FromPoint(world, mi, self, from, target, true).Reverse()
fromPoint,
fromPointReverse
);
CheckSanePath2(pb, from, target);