Tiles now record their textures and this is loaded from the map then converted to an indexed integer on the fly.

This commit is contained in:
Zed A. Shaw 2025-01-31 13:37:01 -05:00
parent 9e3e347e4a
commit a67d25ee10
10 changed files with 64 additions and 66 deletions

View file

@ -110,7 +110,6 @@ void WorldBuilder::stylize_room(int room, string tile_name, float size) {
bool placed = $map.place_entity(room, pos_out);
dbc::check(placed, "failed to place style in room");
dbc::log("FIX THE SYTLE ROOM TO VARY FLOOR OR WALL");
tile_name = tile_name == "FLOOR_TILE" ? "WALL_PLAIN" : tile_name;
for(matrix::circle it{$map.$walls, pos_out, size}; it.next();) {