]> git.lizzy.rs Git - dragonfireclient.git/commit
Mgv6 mudflow: Avoid partially removed stacked decorations
authorparamat <paramat@users.noreply.github.com>
Mon, 12 Jun 2017 16:53:17 +0000 (17:53 +0100)
committerparamat <mat.gregory@virginmedia.com>
Wed, 14 Jun 2017 23:38:08 +0000 (00:38 +0100)
commitf55816f93a8d80371878a5292f4f432e90dcc582
treebe28c92bbc7ccb263e71c2079eeecce4cb8ccd06
parentbbe3dd9a7a3fc0f17a6ab61c70d9ea95962915df
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.
src/mapgen_v6.cpp
src/mapgen_v6.h