| 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) |
| 144 | { |
| 145 | DEBUG(log,out).print("get_z_range: top_is_aq={}, skip_top={}\n", top_is_aq, skip_top); |
| 146 | |
| 147 | if (!top_is_aq) |
| 148 | maxz = get_max_ground_z(out, pos1, pos2) - skip_top; |
| 149 | else |
| 150 | maxz = get_max_aq_z(out, pos1, pos2) - skip_top; |
| 151 | |
| 152 | minz = std::max((int)pos1.z, maxz - levels + 1); |
| 153 | |
| 154 | DEBUG(log,out).print("calculated z range: minz={}, maxz={}\n", minz, maxz); |
| 155 | } |
| 156 | |
| 157 | static void aquifer_list(color_ostream &out, df::coord pos1, df::coord pos2, int levels, bool leaky) { |
| 158 | DEBUG(log,out).print("entering aquifer_list: pos1={}, pos2={}, levels={}, leaky={}\n", |
no test coverage detected