From b8237099b269011f16a8055a61745876768f3f4d Mon Sep 17 00:00:00 2001 From: paramat Date: Tue, 20 Jun 2017 04:55:32 +0100 Subject: 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. --- src/mapgen_v7.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mapgen_v7.h') diff --git a/src/mapgen_v7.h b/src/mapgen_v7.h index 4f369acd2..3b0d11fff 100644 --- a/src/mapgen_v7.h +++ b/src/mapgen_v7.h @@ -37,6 +37,7 @@ extern FlagDesc flagdesc_mapgen_v7[]; struct MapgenV7Params : public MapgenParams { u32 spflags = MGV7_MOUNTAINS | MGV7_RIDGES | MGV7_CAVERNS; float cave_width = 0.09f; + s16 large_cave_depth = -33; float float_mount_density = 0.6f; float float_mount_height = 128.0f; s16 floatland_level = 1280; @@ -88,6 +89,7 @@ public: void generateRidgeTerrain(); private: + s16 large_cave_depth; float float_mount_density; float float_mount_height; s16 floatland_level; -- cgit v1.2.3