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:
a99450a
)
Hopefully fix 'dangling water'
author
Giuseppe Bilotta
<giuseppe.bilotta@gmail.com>
Sat, 20 Aug 2011 05:54:01 +0000
(07:54 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Mon, 22 Aug 2011 18:45:13 +0000
(21:45 +0300)
If a block has (at least visible) liquids, the block below should also
be flowed in.
src/map.cpp
patch
|
blob
|
history
diff --git
a/src/map.cpp
b/src/map.cpp
index 3c10e27ee7247d9e11b0b19c56677bbf37f47b57..27a491428dc812f18a24d217d651498a80d724bb 100644
(file)
--- a/
src/map.cpp
+++ b/
src/map.cpp
@@
-1698,7
+1698,8
@@
void Map::transformLiquids(core::map<v3s16, MapBlock*> & 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;