aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen.h
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-11-15 11:55:45 +0000
committerparamat <mat.gregory@virginmedia.com>2015-11-21 00:10:08 +0000
commitd7bbe81726f46b46d88b188298155dc7519ae1a4 (patch)
tree631d5d46286b55acae1dd8d8e46c2b9d00f3f774 /src/mapgen.h
parent4fd394b657fbaf6f1966024553a45c4e5401542a (diff)
downloadminetest-d7bbe81726f46b46d88b188298155dc7519ae1a4.tar.gz
minetest-d7bbe81726f46b46d88b188298155dc7519ae1a4.tar.bz2
minetest-d7bbe81726f46b46d88b188298155dc7519ae1a4.zip
Mapgen: Add global 'decorations' flag
Flag is set by default in MapgenParams The global 'trees' flag remains but is now undocumented and unset by default in MapgenParams Add mgv6_spflag 'trees' set by default in defaultsettings.cpp to affect new worlds only This is automatically backwards compatible for existing worlds
Diffstat (limited to 'src/mapgen.h')
-rw-r--r--src/mapgen.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mapgen.h b/src/mapgen.h
index 57e995847..31cf7dc11 100644
--- a/src/mapgen.h
+++ b/src/mapgen.h
@@ -29,11 +29,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define DEFAULT_MAPGEN "v6"
/////////////////// Mapgen flags
-#define MG_TREES 0x01
-#define MG_CAVES 0x02
-#define MG_DUNGEONS 0x04
-#define MG_FLAT 0x08
-#define MG_LIGHT 0x10
+#define MG_TREES 0x01
+#define MG_CAVES 0x02
+#define MG_DUNGEONS 0x04
+#define MG_FLAT 0x08
+#define MG_LIGHT 0x10
+#define MG_DECORATIONS 0x20
class Settings;
class MMVManip;
@@ -126,7 +127,7 @@ struct MapgenParams {
chunksize(5),
seed(0),
water_level(1),
- flags(MG_TREES | MG_CAVES | MG_LIGHT),
+ flags(MG_CAVES | MG_LIGHT | MG_DECORATIONS),
np_biome_heat(NoiseParams(50, 50, v3f(750.0, 750.0, 750.0), 5349, 3, 0.5, 2.0)),
np_biome_heat_blend(NoiseParams(0, 1.5, v3f(8.0, 8.0, 8.0), 13, 2, 1.0, 2.0)),
np_biome_humidity(NoiseParams(50, 50, v3f(750.0, 750.0, 750.0), 842, 3, 0.5, 2.0)),