Vehicles can't move to nearby walled tile #6989

This commit is contained in:
Jonathan Gustafsson
2014-11-30 22:55:08 +01:00
parent e6852e2b50
commit c5b2c747f8
3 changed files with 17 additions and 12 deletions

View File

@@ -68,9 +68,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);