Skip to content
Snippets Groups Projects
Commit 774faf4e authored by Giuseppe Bilotta's avatar Giuseppe Bilotta
Browse files

Let the liquids flow in the open

No need to curb their spread artificially.
parent d0711821
Branches
Tags
No related merge requests found
......@@ -1703,19 +1703,6 @@ void Map::transformLiquids(core::map<v3s16, MapBlock*> & modified_blocks)
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)
new_node_content = liquid_kind;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment