From: Perttu Ahola Date: Tue, 29 Nov 2011 16:21:00 +0000 (+0200) Subject: Quick fix to a bug that makes it possible to raise water levels everywhere with one... X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=be2ecf9186286f67edcfbbc4b7cabca7189226b3;p=zefram%2Fminetest%2Fminetest_engine.git Quick fix to a bug that makes it possible to raise water levels everywhere with one source --- diff --git a/src/map.cpp b/src/map.cpp index 34bc31ba..0f50a1ef 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1683,7 +1683,9 @@ void Map::transformLiquids(core::map & modified_blocks) if (nodemgr->getId(nodemgr->get(nb.n).liquid_alternative_flowing) != liquid_kind) { neutrals[num_neutrals++] = nb; } else { - sources[num_sources++] = nb; + // Do not count bottom source, it will screw things up + if(dirs[i].Y != -1) + sources[num_sources++] = nb; } break; case LIQUID_FLOWING: