MCPcopy Create free account
hub / github.com/DFHack/dfhack / get_max_aq_z

Function get_max_aq_z

plugins/aquifer.cpp:130–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static 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
142static 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)

Callers 1

get_z_rangeFunction · 0.85

Calls 1

for_blockFunction · 0.85

Tested by

no test coverage detected