From: proller Date: Sat, 6 Apr 2013 19:07:06 +0000 (+0400) Subject: Adjusting water removing above unloaded blocks X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=d50b2ede92bb33d6f471be34cd7e64efc6434c6b;p=zefram%2Fminetest%2Fminetest_engine.git Adjusting water removing above unloaded blocks --- diff --git a/src/map.cpp b/src/map.cpp index c9f473dc..a8201f3e 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1763,9 +1763,9 @@ void Map::transformLiquidsFinite(std::map & modified_blocks) total_level = LIQUID_LEVEL_SOURCE * can_liquid_same_level; } - // prevent lakes in air under unloaded blocks + // prevent lakes in air above unloaded blocks if (p0.Y > water_level && neighbors[D_BOTTOM].n.getContent() == CONTENT_IGNORE) { - total_level = 0; + --total_level; } // calculate self level 5 blocks