aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-29 18:21:00 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:59 +0200
commitbe2ecf9186286f67edcfbbc4b7cabca7189226b3 (patch)
treee2103b676bf19bf25d9f417a5544e7b4cc1eb74a /src
parentd57aa531e138f4e060ab6bb8d1c0221fe32d5ab0 (diff)
downloadminetest-be2ecf9186286f67edcfbbc4b7cabca7189226b3.tar.gz
minetest-be2ecf9186286f67edcfbbc4b7cabca7189226b3.tar.bz2
minetest-be2ecf9186286f67edcfbbc4b7cabca7189226b3.zip
Quick fix to a bug that makes it possible to raise water levels everywhere with one source
Diffstat (limited to 'src')
-rw-r--r--src/map.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp
index 34bc31ba4..0f50a1ef4 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1683,7 +1683,9 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & 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: