Removed an overload of Footprint.Tiles (see also next commit)

This commit is contained in:
Bob
2010-01-18 14:14:15 +13:00
parent c62944e492
commit aac9a01c49
3 changed files with 4 additions and 7 deletions

View File

@@ -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;
}