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_flat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mapgen/mapgen_flat.h') diff --git a/src/mapgen/mapgen_flat.h b/src/mapgen/mapgen_flat.h index ad7c149a3..d8ec9f126 100644 --- a/src/mapgen/mapgen_flat.h +++ b/src/mapgen/mapgen_flat.h @@ -41,6 +41,9 @@ struct MapgenFlatParams : public MapgenParams float lake_steepness = 48.0f; float hill_threshold = 0.45f; float hill_steepness = 64.0f; + s16 dungeon_ymin = -31000; + s16 dungeon_ymax = 31000; + NoiseParams np_terrain; NoiseParams np_filler_depth; NoiseParams np_cave1; @@ -72,5 +75,8 @@ private: float lake_steepness; float hill_threshold; float hill_steepness; + s16 dungeon_ymin; + s16 dungeon_ymax; + Noise *noise_terrain; }; -- cgit v1.2.3