aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen.cpp
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2017-06-21 04:20:18 +0100
committerparamat <mat.gregory@virginmedia.com>2017-06-22 03:14:56 +0100
commit2652d8db19fb2758de1da4c04ce169f80c87e5c7 (patch)
treeb2e88382103c2084e642db43ad9823867bdbaa88 /src/mapgen.cpp
parentbc53c82bcf923d11725e3de8565eb4c7e435cd2b (diff)
downloadminetest-2652d8db19fb2758de1da4c04ce169f80c87e5c7.tar.gz
minetest-2652d8db19fb2758de1da4c04ce169f80c87e5c7.tar.bz2
minetest-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/mapgen.cpp')
-rw-r--r--src/mapgen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp
index 70de8c8e8..e40bf2a7e 100644
--- a/src/mapgen.cpp
+++ b/src/mapgen.cpp
@@ -817,7 +817,7 @@ void MapgenBasic::generateCaves(s16 max_stone_y, s16 large_cave_depth)
u32 bruises_count = ps.range(0, 2);
for (u32 i = 0; i < bruises_count; i++) {
CavesRandomWalk cave(ndef, &gennotify, seed, water_level,
- c_water_source, CONTENT_IGNORE);
+ c_water_source, CONTENT_IGNORE, lava_depth);
cave.makeCave(vm, node_min, node_max, &ps, true, max_stone_y, heightmap);
}