| 276 | } |
| 277 | |
| 278 | static const char * get_tile_dig_default(const df::coord &pos, df::tiletype *tt) { |
| 279 | switch (tileShape(*tt)) { |
| 280 | case df::tiletype_shape::WALL: |
| 281 | if (auto tmat = tileMaterial(*tt)) |
| 282 | if (tmat == df::tiletype_material::TREE) |
| 283 | return "t"; |
| 284 | return "d"; |
| 285 | case df::tiletype_shape::STAIR_UP: |
| 286 | case df::tiletype_shape::STAIR_UPDOWN: |
| 287 | case df::tiletype_shape::RAMP: |
| 288 | return "z"; |
| 289 | case df::tiletype_shape::SHRUB: |
| 290 | return "p"; |
| 291 | default: |
| 292 | return "d"; |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | static const char * get_tile_dig_designation(const df::coord &pos, const df::tile_dig_designation &tdd) { |
| 297 | switch (tdd) { |
no test coverage detected