aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen/mapgen_carpathian.h
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2018-04-05 21:52:10 +0100
committerGitHub <noreply@github.com>2018-04-05 21:52:10 +0100
commit5701f9e3898e5729e1602bb711af35603c67a964 (patch)
tree3ffd81411a4e6335fc64c1a5d9a5a418d3f81daa /src/mapgen/mapgen_carpathian.h
parentc6975febbab02db306329a93d4ccc3249df209e3 (diff)
downloadminetest-5701f9e3898e5729e1602bb711af35603c67a964.tar.gz
minetest-5701f9e3898e5729e1602bb711af35603c67a964.tar.bz2
minetest-5701f9e3898e5729e1602bb711af35603c67a964.zip
Mgcarpathian: Remove insignificant 'base' noise variation (#7209)
Was only +-1 node over a scale of thousands of nodes. Replace with 'base_level' parameter value.
Diffstat (limited to 'src/mapgen/mapgen_carpathian.h')
-rw-r--r--src/mapgen/mapgen_carpathian.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mapgen/mapgen_carpathian.h b/src/mapgen/mapgen_carpathian.h
index ac63eca4a..c32212c9a 100644
--- a/src/mapgen/mapgen_carpathian.h
+++ b/src/mapgen/mapgen_carpathian.h
@@ -33,6 +33,8 @@ extern FlagDesc flagdesc_mapgen_carpathian[];
struct MapgenCarpathianParams : public MapgenParams
{
+ float base_level = 12.0f;
+
u32 spflags = MGCARPATHIAN_CAVERNS;
float cave_width = 0.09f;
s16 large_cave_depth = -33;
@@ -43,7 +45,6 @@ struct MapgenCarpathianParams : public MapgenParams
s16 dungeon_ymin = -31000;
s16 dungeon_ymax = 31000;
- NoiseParams np_base;
NoiseParams np_filler_depth;
NoiseParams np_height1;
NoiseParams np_height2;
@@ -83,12 +84,13 @@ public:
int getSpawnLevelAtPoint(v2s16 p);
private:
- s16 large_cave_depth;
+ float base_level;
s32 grad_wl;
+
+ s16 large_cave_depth;
s16 dungeon_ymin;
s16 dungeon_ymax;
- Noise *noise_base;
Noise *noise_height1;
Noise *noise_height2;
Noise *noise_height3;