Removed an overload of Footprint.Tiles (see also next commit)
This commit is contained in:
@@ -125,7 +125,8 @@ namespace OpenRa
|
||||
ignoreTerrain = true,
|
||||
};
|
||||
|
||||
foreach (var t in Footprint.Tiles(buildingName, bi, position)) search.AddInitialCell(t);
|
||||
var topLeft = position - Footprint.AdjustForBuildingSize( bi );
|
||||
foreach (var t in Footprint.Tiles(buildingName, bi, topLeft, false)) search.AddInitialCell(t);
|
||||
|
||||
return world.PathFinder.FindPath(search).Count != 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user