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_fractal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mapgen_fractal.h') diff --git a/src/mapgen_fractal.h b/src/mapgen_fractal.h index 688e41c0a..a14c5c5e1 100644 --- a/src/mapgen_fractal.h +++ b/src/mapgen_fractal.h @@ -35,6 +35,7 @@ struct MapgenFractalParams : public MapgenParams u32 spflags = 0; float cave_width = 0.09f; s16 large_cave_depth = -33; + s16 lava_depth = -256; u16 fractal = 1; u16 iterations = 11; v3f scale = v3f(4096.0, 1024.0, 4096.0); -- cgit v1.2.3