| 652 | */ |
| 653 | |
| 654 | GeoLayer *VeinGenerator::mapLayer(Block *pb, df::coord2d tile) |
| 655 | { |
| 656 | int idx = pb->biomeIndexAt(tile); |
| 657 | GeoBiome *biome = biome_by_idx.at(idx); |
| 658 | |
| 659 | int lidx = pb->layerIndexAt(tile); |
| 660 | if (unsigned(lidx) >= biome->layers.size()) |
| 661 | return NULL; |
| 662 | |
| 663 | return biome->layers[lidx]; |
| 664 | } |
| 665 | |
| 666 | static bool isTransientMaterial(df::tiletype tile) |
| 667 | { |
nothing calls this directly
no test coverage detected