| 701 | } |
| 702 | |
| 703 | static int findTopBlock(MapCache &map, int x, int y) |
| 704 | { |
| 705 | for (int z = map.maxZ(); z >= 0; z--) |
| 706 | { |
| 707 | Block *b = map.BlockAt(df::coord(x,y,z)); |
| 708 | if (b && b->is_valid() && !isSkyBlock(b)) |
| 709 | return z; |
| 710 | } |
| 711 | |
| 712 | return -1; |
| 713 | } |
| 714 | |
| 715 | bool VeinGenerator::scan_tiles() |
| 716 | { |
no test coverage detected