mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
Mgv6 mudflow: Avoid partially removed stacked decorations
Recently we started to remove decorations if the dirt below was flowed away, but this did not check for stacked decorations, causing them to have only their lowest node removed. Also, placed mud could partially bury stacked decorations. Remove 'old_is_water' bool which on testing is never true. Add new function 'moveMud()' to reduce indentation. Remove stacked decoration nodes above a removed decoration. Remove stacked decorations partially buried in placed mud.
This commit is contained in:
parent
bbe3dd9a7a
commit
f55816f93a
2 changed files with 41 additions and 19 deletions
|
@ -162,6 +162,8 @@ public:
|
|||
int generateGround();
|
||||
void addMud();
|
||||
void flowMud(s16 &mudflow_minpos, s16 &mudflow_maxpos);
|
||||
void moveMud(u32 remove_index, u32 place_index,
|
||||
u32 above_remove_index, v2s16 pos, v3s16 em);
|
||||
void growGrass();
|
||||
void placeTreesAndJungleGrass();
|
||||
virtual void generateCaves(int max_stone_y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue