From: Giuseppe Bilotta Date: Sat, 20 Aug 2011 05:54:01 +0000 (+0200) Subject: Hopefully fix 'dangling water' X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=b37fffc2c58ff81d22abad8c147998a033725104;p=zefram%2Fminetest%2Fminetest_engine.git Hopefully fix 'dangling water' If a block has (at least visible) liquids, the block below should also be flowed in. --- diff --git a/src/map.cpp b/src/map.cpp index 3c10e27e..27a49142 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1698,7 +1698,8 @@ void Map::transformLiquids(core::map & modified_blocks) max_node_level = LIQUID_LEVEL_MAX; if (nb_liquid_level + WATER_DROP_BOOST < LIQUID_LEVEL_MAX) max_node_level = nb_liquid_level + WATER_DROP_BOOST; - } + } else if (nb_liquid_level > max_node_level) + max_node_level = nb_liquid_level; break; case NEIGHBOR_LOWER: break;