aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-09 00:37:48 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-09 00:38:04 -0500
commit29b413b376d42c27bf1f7065c9f7c850b61f3f24 (patch)
treef5cc0ca2d4306cb63094b794540668f611cf4ff4 /src/mapgen.h
parent74903689848bcd277329f3bd54c62f2aa8306f40 (diff)
downloadminetest-29b413b376d42c27bf1f7065c9f7c850b61f3f24.tar.gz
minetest-29b413b376d42c27bf1f7065c9f7c850b61f3f24.tar.bz2
minetest-29b413b376d42c27bf1f7065c9f7c850b61f3f24.zip
Biomes: Make biome heat and humidity noise parameters user-configurable
Diffstat (limited to 'src/mapgen.h')
-rw-r--r--src/mapgen.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mapgen.h b/src/mapgen.h
index 5feeaf97c..834495036 100644
--- a/src/mapgen.h
+++ b/src/mapgen.h
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef MAPGEN_HEADER
#define MAPGEN_HEADER
+#include "noise.h"
#include "nodedef.h"
#include "mapnode.h"
#include "util/string.h"
@@ -107,6 +108,9 @@ struct MapgenParams {
s16 water_level;
u32 flags;
+ NoiseParams np_biome_heat;
+ NoiseParams np_biome_humidity;
+
MapgenSpecificParams *sparams;
MapgenParams()
@@ -117,6 +121,8 @@ struct MapgenParams {
chunksize = 5;
flags = MG_TREES | MG_CAVES | MG_LIGHT;
sparams = NULL;
+ np_biome_heat = NoiseParams(50, 50, v3f(500.0, 500.0, 500.0), 5349, 3, 0.70, 2.0);
+ np_biome_humidity = NoiseParams(50, 50, v3f(500.0, 500.0, 500.0), 842, 3, 0.55, 2.0);
}
};