mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 18:13:46 +01:00
Let the liquids flow in the open
No need to curb their spread artificially.
This commit is contained in:
parent
d0711821f3
commit
774faf4e85
13
src/map.cpp
13
src/map.cpp
@ -1703,19 +1703,6 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// don't flow as far in open terrain - if there isn't at least one adjacent solid block,
|
|
||||||
// substract another unit from the resulting water level.
|
|
||||||
if (!flowing_down && new_node_level >= 1) {
|
|
||||||
bool at_wall = false;
|
|
||||||
for (u16 i = 0; i < num_neutrals; i++) {
|
|
||||||
if (neutrals[i].t == NEIGHBOR_SAME_LEVEL) {
|
|
||||||
at_wall = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!at_wall)
|
|
||||||
new_node_level -= 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (new_node_level >= 0)
|
if (new_node_level >= 0)
|
||||||
new_node_content = liquid_kind;
|
new_node_content = liquid_kind;
|
||||||
|
Loading…
Reference in New Issue
Block a user