Static layer material (i.e. base + constructions)
| 216 | } |
| 217 | /// Static layer material (i.e. base + constructions) |
| 218 | t_matpair staticMaterialAt(df::coord2d p) |
| 219 | { |
| 220 | if (!basemats) init_tiles(true); |
| 221 | if (tiles->con_info) |
| 222 | return t_matpair( |
| 223 | index_tile(tiles->con_info->mat_type,p), |
| 224 | index_tile(tiles->con_info->mat_index,p) |
| 225 | ); |
| 226 | return baseMaterialAt(p); |
| 227 | } |
| 228 | bool hasConstructionAt(df::coord2d p) |
| 229 | { |
| 230 | if (!tiles) init_tiles(); |
nothing calls this directly
no test coverage detected