diff options
author | paramat <paramat@users.noreply.github.com> | 2017-06-20 04:55:32 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-06-21 01:58:04 +0100 |
commit | b8237099b269011f16a8055a61745876768f3f4d (patch) | |
tree | 88cbfcf96c769e6d5cbb5b7e943453571a4fc330 /src/mapgen_fractal.h | |
parent | e6a9e6066afc369f01c046de8e3a90a4b042286c (diff) | |
download | minetest-b8237099b269011f16a8055a61745876768f3f4d.tar.gz minetest-b8237099b269011f16a8055a61745876768f3f4d.tar.bz2 minetest-b8237099b269011f16a8055a61745876768f3f4d.zip |
Mgv5/v7/fractal: Add 'large_cave_depth' parameter to replace fixed value
The value cannot be fixed because we can shift terrain vertically.
This also makes these mapgens consistent with mgflat and mgvalleys which
have 'large_cave_depth' parameters.
Diffstat (limited to 'src/mapgen_fractal.h')
-rw-r--r-- | src/mapgen_fractal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen_fractal.h b/src/mapgen_fractal.h index afbdb0cb1..688e41c0a 100644 --- a/src/mapgen_fractal.h +++ b/src/mapgen_fractal.h @@ -26,8 +26,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "mapgen.h" -#define MGFRACTAL_LARGE_CAVE_DEPTH -33 - class BiomeManager; extern FlagDesc flagdesc_mapgen_fractal[]; @@ -36,6 +34,7 @@ struct MapgenFractalParams : public MapgenParams { u32 spflags = 0; float cave_width = 0.09f; + s16 large_cave_depth = -33; u16 fractal = 1; u16 iterations = 11; v3f scale = v3f(4096.0, 1024.0, 4096.0); @@ -74,6 +73,7 @@ private: u16 formula; bool julia; + s16 large_cave_depth; u16 fractal; u16 iterations; v3f scale; |