projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
453d79e
)
Adjusting water removing above unloaded blocks
author
proller
<proller@github.com>
Sat, 6 Apr 2013 19:07:06 +0000
(23:07 +0400)
committer
proller
<proller@github.com>
Sat, 6 Apr 2013 20:05:39 +0000
(
00:05
+0400)
src/map.cpp
patch
|
blob
|
history
diff --git
a/src/map.cpp
b/src/map.cpp
index c9f473dc2cb150b9c8d39b24fa85d1b905067f21..a8201f3ee7cb0456c050e187e4df231837b8a9a6 100644
(file)
--- 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