| 402 | } |
| 403 | |
| 404 | int regrass_block(color_ostream &out, const regrass_options &options, df::map_block *block) |
| 405 | { // Regrass all tiles in a single block. |
| 406 | CHECK_NULL_POINTER(block); |
| 407 | DEBUG(log, out).print("Regrass block at ({}, {}, {})\n", |
| 408 | block->map_pos.x, block->map_pos.y, block->map_pos.z); |
| 409 | |
| 410 | int count = 0; |
| 411 | for (int tx = 0; tx < 16; tx++) |
| 412 | for (int ty = 0; ty < 16; ty++) |
| 413 | count += regrass_tile(out, options, block, tx, ty); |
| 414 | return count; |
| 415 | } |
| 416 | |
| 417 | int regrass_map(color_ostream &out, const regrass_options &options) |
| 418 | { // Regrass entire map. |
no test coverage detected