diff options
author | paramat <paramat@users.noreply.github.com> | 2017-06-21 04:20:18 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-06-22 03:14:56 +0100 |
commit | 2652d8db19fb2758de1da4c04ce169f80c87e5c7 (patch) | |
tree | b2e88382103c2084e642db43ad9823867bdbaa88 /src/cavegen.cpp | |
parent | bc53c82bcf923d11725e3de8565eb4c7e435cd2b (diff) | |
download | hax-minetest-server-2652d8db19fb2758de1da4c04ce169f80c87e5c7.tar.gz hax-minetest-server-2652d8db19fb2758de1da4c04ce169f80c87e5c7.zip |
CavesRandomWalk: Make 'lava_depth' a mapgen parameter
As with 'large_cave_depth', lava depth was previously a fixed y value and
therefore incompatible with the ability to shift terrain vertically.
Add 'lava_depth' mapgen parameter to mgflat, mgfractal, mgv5, mgv7.
Diffstat (limited to 'src/cavegen.cpp')
-rw-r--r-- | src/cavegen.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cavegen.cpp b/src/cavegen.cpp index dbed79951..a2ecca483 100644 --- a/src/cavegen.cpp +++ b/src/cavegen.cpp @@ -258,7 +258,8 @@ CavesRandomWalk::CavesRandomWalk( s32 seed, int water_level, content_t water_source, - content_t lava_source) + content_t lava_source, + int lava_depth) { assert(ndef); @@ -267,7 +268,7 @@ CavesRandomWalk::CavesRandomWalk( this->seed = seed; this->water_level = water_level; this->np_caveliquids = &nparams_caveliquids; - this->lava_depth = DEFAULT_LAVA_DEPTH; + this->lava_depth = lava_depth; c_water_source = water_source; if (c_water_source == CONTENT_IGNORE) |