aboutsummaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorproller <proller@github.com>2013-04-06 23:07:06 +0400
committerproller <proller@github.com>2013-04-07 00:05:39 +0400
commitd50b2ede92bb33d6f471be34cd7e64efc6434c6b (patch)
tree77d74a1387f44249eba0ffba595b3bcab2af41bc /src/map.cpp
parent453d79e3a201a4186dae386d0bce209f75be742c (diff)
downloadminetest-d50b2ede92bb33d6f471be34cd7e64efc6434c6b.tar.gz
minetest-d50b2ede92bb33d6f471be34cd7e64efc6434c6b.tar.bz2
minetest-d50b2ede92bb33d6f471be34cd7e64efc6434c6b.zip
Adjusting water removing above unloaded blocks
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map.cpp b/src/map.cpp
index c9f473dc2..a8201f3ee 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -1763,9 +1763,9 @@ void Map::transformLiquidsFinite(std::map<v3s16, MapBlock*> & 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