| 617 | // connects adjacent smooth walls to our new smooth wall |
| 618 | static TileDirection BLANK_TILE_DIRECTION; |
| 619 | static bool adjust_smooth_wall_dir(MapExtras::MapCache &map, |
| 620 | const DFCoord &pos, |
| 621 | TileDirection tdir = BLANK_TILE_DIRECTION) { |
| 622 | if (!is_smooth_wall(map, pos)) |
| 623 | return is_connector(map, pos); |
| 624 | |
| 625 | tdir = ensure_valid_tdir(get_adjacent_smooth_walls(map, pos, tdir)); |
| 626 | |
| 627 | df::tiletype tt = map.tiletypeAt(pos); |
| 628 | tt = findTileType(tileShape(tt), tileMaterial(tt), tileVariant(tt), |
| 629 | tileSpecial(tt), tdir); |
| 630 | if (tt == df::tiletype::Void) |
| 631 | return false; |
| 632 | |
| 633 | map.setTiletypeAt(pos, tt); |
| 634 | return true; |
| 635 | } |
| 636 | |
| 637 | static void refresh_adjacent_smooth_walls(MapExtras::MapCache &map, |
| 638 | const DFCoord &pos) { |
no test coverage detected