* Make an empty world where all tiles are of height 'tile_height'. * @param tile_height of the desired new empty world */
| 540 | * @param tile_height of the desired new empty world |
| 541 | */ |
| 542 | void FlatEmptyWorld(uint8_t tile_height) |
| 543 | { |
| 544 | int edge_distance = _settings_game.construction.freeform_edges ? 0 : 2; |
| 545 | for (uint row = edge_distance; row < Map::SizeY() - edge_distance; row++) { |
| 546 | for (uint col = edge_distance; col < Map::SizeX() - edge_distance; col++) { |
| 547 | SetTileHeight(TileXY(col, row), tile_height); |
| 548 | } |
| 549 | } |
| 550 | |
| 551 | FixSlopes(); |
| 552 | MarkWholeScreenDirty(); |
| 553 | } |
no test coverage detected