Minor pathfinder changes

This commit is contained in:
reaperrr
2015-07-17 23:58:45 +02:00
parent 5109848215
commit 711ec0c600
5 changed files with 21 additions and 22 deletions

View File

@@ -97,7 +97,7 @@ namespace OpenRA.Mods.Common.Pathfinder
{
defaultCellInfoLayer =
CellLayer<CellInfo>.CreateInstance(
mpos => new CellInfo(int.MaxValue, int.MaxValue, mpos.ToCPos(map as Map), CellStatus.Unvisited),
mpos => new CellInfo(int.MaxValue, int.MaxValue, mpos.ToCPos(map), CellStatus.Unvisited),
new Size(map.MapSize.X, map.MapSize.Y),
map.TileShape);
}