| 128 | } |
| 129 | |
| 130 | static int get_max_aq_z(color_ostream &out, const df::coord &pos1, const df::coord &pos2) |
| 131 | { |
| 132 | int maxz = -1; |
| 133 | for_block(pos1.z, pos2.z, pos1, pos2, [](const df::coord &pos){ |
| 134 | }, [&](df::map_block *block){ |
| 135 | if (block->flags.bits.has_aquifer && maxz < block->map_pos.z) |
| 136 | maxz = block->map_pos.z; |
| 137 | return false; |
| 138 | }); |
| 139 | return maxz; |
| 140 | } |
| 141 | |
| 142 | static void get_z_range(color_ostream &out, int & minz, int & maxz, const df::coord & pos1, |
| 143 | const df::coord & pos2, int levels, bool top_is_aq = false, int skip_top = 0) |
no test coverage detected