summaryrefslogtreecommitdiff
path: root/src/mapgen_v6.h
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2017-06-12 17:53:17 +0100
committerparamat <mat.gregory@virginmedia.com>2017-06-15 00:38:08 +0100
commitf55816f93a8d80371878a5292f4f432e90dcc582 (patch)
treebe28c92bbc7ccb263e71c2079eeecce4cb8ccd06 /src/mapgen_v6.h
parentbbe3dd9a7a3fc0f17a6ab61c70d9ea95962915df (diff)
downloadminetest-f55816f93a8d80371878a5292f4f432e90dcc582.tar.gz
minetest-f55816f93a8d80371878a5292f4f432e90dcc582.tar.bz2
minetest-f55816f93a8d80371878a5292f4f432e90dcc582.zip
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.
Diffstat (limited to 'src/mapgen_v6.h')
-rw-r--r--src/mapgen_v6.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapgen_v6.h b/src/mapgen_v6.h
index 2b3b4444e..9d36804d0 100644
--- a/src/mapgen_v6.h
+++ b/src/mapgen_v6.h
@@ -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);