removes self and/or orthogonally adjacent ramps that are no longer adjacent to a wall
| 360 | // removes self and/or orthogonally adjacent ramps that are no longer adjacent |
| 361 | // to a wall |
| 362 | static void clean_ramps(MapExtras::MapCache &map, const DFCoord &pos) { |
| 363 | clean_ramp(map, pos); |
| 364 | clean_ramp(map, DFCoord(pos.x-1, pos.y, pos.z)); |
| 365 | clean_ramp(map, DFCoord(pos.x+1, pos.y, pos.z)); |
| 366 | clean_ramp(map, DFCoord(pos.x, pos.y-1, pos.z)); |
| 367 | clean_ramp(map, DFCoord(pos.x, pos.y+1, pos.z)); |
| 368 | clean_ramp(map, DFCoord(pos.x-1, pos.y-1, pos.z)); |
| 369 | clean_ramp(map, DFCoord(pos.x-1, pos.y+1, pos.z)); |
| 370 | clean_ramp(map, DFCoord(pos.x+1, pos.y-1, pos.z)); |
| 371 | clean_ramp(map, DFCoord(pos.x+1, pos.y+1, pos.z)); |
| 372 | } |
| 373 | |
| 374 | // destroys any colonies located at pos |
| 375 | static void destroy_colony(const DFCoord &pos) { |
no test coverage detected