| 73 | } |
| 74 | |
| 75 | static bool is_rough_natural_wall(int16_t x, int16_t y, int16_t z) { |
| 76 | df::tiletype *tt = Maps::getTileType(x, y, z); |
| 77 | if (!tt) |
| 78 | return false; |
| 79 | |
| 80 | return tileShape(*tt) == df::tiletype_shape::WALL && |
| 81 | (tileMaterial(*tt) == df::tiletype_material::STONE || |
| 82 | tileMaterial(*tt) == df::tiletype_material::SOIL) && |
| 83 | tileSpecial(*tt) != df::tiletype_special::SMOOTH; |
| 84 | } |
| 85 | |
| 86 | static bool is_rough_natural_wall(const df::coord & pos) { |
| 87 | return is_rough_natural_wall(pos.x, pos.y, pos.z); |
no test coverage detected