From 2bc7c5ff93859489c57c055cafb4d75146e062b3 Mon Sep 17 00:00:00 2001 From: paramat Date: Sat, 17 Feb 2018 17:43:13 +0000 Subject: Dungeons: Add Y limits in all mapgens Preserve the upper limit used in mgvalleys. --- src/mapgen/mapgen_carpathian.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mapgen/mapgen_carpathian.h') diff --git a/src/mapgen/mapgen_carpathian.h b/src/mapgen/mapgen_carpathian.h index 0ca46d18a..ac63eca4a 100644 --- a/src/mapgen/mapgen_carpathian.h +++ b/src/mapgen/mapgen_carpathian.h @@ -40,6 +40,8 @@ struct MapgenCarpathianParams : public MapgenParams s16 cavern_limit = -256; s16 cavern_taper = 256; float cavern_threshold = 0.7f; + s16 dungeon_ymin = -31000; + s16 dungeon_ymax = 31000; NoiseParams np_base; NoiseParams np_filler_depth; @@ -83,6 +85,8 @@ public: private: s16 large_cave_depth; s32 grad_wl; + s16 dungeon_ymin; + s16 dungeon_ymax; Noise *noise_base; Noise *noise_height1; -- cgit v1.2.3