summaryrefslogtreecommitdiff
path: root/src/mapgen/mapgen_v5.h
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2018-02-17 17:43:13 +0000
committerparamat <mat.gregory@virginmedia.com>2018-02-20 15:25:37 +0000
commit2bc7c5ff93859489c57c055cafb4d75146e062b3 (patch)
treeb28fda78d419826b29784b0e809846fb2c027f10 /src/mapgen/mapgen_v5.h
parent0f015b28a30f77e006528a36c8d5b7705b0d6423 (diff)
downloadminetest-2bc7c5ff93859489c57c055cafb4d75146e062b3.tar.gz
minetest-2bc7c5ff93859489c57c055cafb4d75146e062b3.tar.bz2
minetest-2bc7c5ff93859489c57c055cafb4d75146e062b3.zip
Dungeons: Add Y limits in all mapgens
Preserve the upper limit used in mgvalleys.
Diffstat (limited to 'src/mapgen/mapgen_v5.h')
-rw-r--r--src/mapgen/mapgen_v5.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mapgen/mapgen_v5.h b/src/mapgen/mapgen_v5.h
index e917d7deb..f3b2f5d44 100644
--- a/src/mapgen/mapgen_v5.h
+++ b/src/mapgen/mapgen_v5.h
@@ -38,6 +38,8 @@ struct MapgenV5Params : 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_filler_depth;
NoiseParams np_factor;
@@ -68,6 +70,9 @@ public:
private:
s16 large_cave_depth;
+ s16 dungeon_ymin;
+ s16 dungeon_ymax;
+
Noise *noise_factor;
Noise *noise_height;
Noise *noise_ground;