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

@@ -23,7 +23,7 @@ namespace OpenRA.Mods.RA.Move
public PriorityQueue<PathDistance> Queue;
public Func<CPos, int> Heuristic;
public bool CheckForBlocked;
public Actor IgnoreBuilding;
public Actor IgnoredActor;
public bool InReverse;
public HashSet<CPos> Considered;
public Player Owner { get { return self.Owner; } }
@@ -108,9 +108,9 @@ namespace OpenRA.Mods.RA.Move
return this;
}
public PathSearch WithIgnoredBuilding(Actor b)
public PathSearch WithIgnoredActor(Actor b)
{
IgnoreBuilding = b;
IgnoredActor = b;
return this;
}
@@ -215,7 +215,7 @@ namespace OpenRA.Mods.RA.Move
if (costHere == int.MaxValue)
continue;
if (!mobileInfo.CanEnterCell(world, self, newHere, IgnoreBuilding, CheckForBlocked ? CellConditions.TransientActors : CellConditions.None))
if (!mobileInfo.CanEnterCell(world, self, newHere, IgnoredActor, CheckForBlocked ? CellConditions.TransientActors : CellConditions.None))
continue;
if (customBlock != null && customBlock(newHere))