From 2652d8db19fb2758de1da4c04ce169f80c87e5c7 Mon Sep 17 00:00:00 2001 From: paramat Date: Wed, 21 Jun 2017 04:20:18 +0100 Subject: 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. --- src/mapgen_v7.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mapgen_v7.h') diff --git a/src/mapgen_v7.h b/src/mapgen_v7.h index 3b0d11fff..7b4364ef1 100644 --- a/src/mapgen_v7.h +++ b/src/mapgen_v7.h @@ -38,6 +38,7 @@ struct MapgenV7Params : public MapgenParams { u32 spflags = MGV7_MOUNTAINS | MGV7_RIDGES | MGV7_CAVERNS; float cave_width = 0.09f; s16 large_cave_depth = -33; + s16 lava_depth = -256; float float_mount_density = 0.6f; float float_mount_height = 128.0f; s16 floatland_level = 1280; -- cgit v1.2.3