aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_v5.cpp
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_v5.cpp
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_v5.cpp')
-rw-r--r--src/mapgen_v5.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp
index 10e9f5e65..3d7e3bf83 100644
--- a/src/mapgen_v5.cpp
+++ b/src/mapgen_v5.cpp
@@ -296,7 +296,8 @@ void MapgenV5::makeChunk(BlockMakeData *data)
}
// Generate the registered decorations
- m_emerge->decomgr->placeAllDecos(this, blockseed, node_min, node_max);
+ if (flags & MG_DECORATIONS)
+ m_emerge->decomgr->placeAllDecos(this, blockseed, node_min, node_max);
// Generate the registered ores
m_emerge->oremgr->placeAllOres(this, blockseed, node_min, node_max);