Add BzTileID which refers to the tileset
This commit is contained in:
@@ -29,7 +29,7 @@ bool canPlaceBuilding(BzTileMap *map, BuildingType type, BzTile tileX, BzTile ti
|
||||
for (i32 y = tileY; y < tileY + sizeY; y++) {
|
||||
for (i32 x = tileX; x < tileX + sizeX; x++) {
|
||||
BzTile tile = bzTileLayerGetTile(buildLayer, x, y);
|
||||
tile = bzTilesetGetTile(tileset, tile);
|
||||
tile = bzTilesetGetTileID(tileset, tile);
|
||||
tile = getTileBuilding(tile);
|
||||
//if (tile == BUILDINGS_ROAD)
|
||||
// return false;
|
||||
|
||||
Reference in New Issue
Block a user