diff options
author | paramat <paramat@users.noreply.github.com> | 2018-02-17 17:43:13 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2018-02-20 15:25:37 +0000 |
commit | 2bc7c5ff93859489c57c055cafb4d75146e062b3 (patch) | |
tree | b28fda78d419826b29784b0e809846fb2c027f10 /src/mapgen/mapgen_flat.h | |
parent | 0f015b28a30f77e006528a36c8d5b7705b0d6423 (diff) | |
download | minetest-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_flat.h')
-rw-r--r-- | src/mapgen/mapgen_flat.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; }; |