aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_v6.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-03-09 21:28:19 -0500
committerkwolekr <kwolekr@minetest.net>2013-03-10 00:42:51 -0500
commit650e932ddf7352e50bba42acbc0ff4eda8aa40e2 (patch)
tree6290338f520fc40be388a254bd04507a742550c2 /src/mapgen_v6.cpp
parentaa77ee66c56f1f081b2d278da4a238ab2f5c9ff8 (diff)
downloadminetest-650e932ddf7352e50bba42acbc0ff4eda8aa40e2.tar.gz
minetest-650e932ddf7352e50bba42acbc0ff4eda8aa40e2.tar.bz2
minetest-650e932ddf7352e50bba42acbc0ff4eda8aa40e2.zip
Re-add dungeons in new dungeongen.cpp
Diffstat (limited to 'src/mapgen_v6.cpp')
-rw-r--r--src/mapgen_v6.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp
index d5405876e..bf12f3099 100644
--- a/src/mapgen_v6.cpp
+++ b/src/mapgen_v6.cpp
@@ -32,6 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "settings.h" // For g_settings
#include "main.h" // For g_profiler
#include "emerge.h"
+#include "dungeongen.h"
#include "mapgen_v6.h"
/////////////////// Mapgen V6 perlin noise default values
@@ -1242,6 +1243,14 @@ void MapgenV6::makeChunk(BlockMakeData *data)
************************/
/*
+ Add dungeons
+ */
+ if (flags & MG_DUNGEONS) {
+ DungeonGen dgen(ndef, data->seed, water_level);
+ dgen.generate(&vmanip, blockseed, full_node_min, full_node_max);
+ }
+
+ /*
Add top and bottom side of water to transforming_liquid queue
*/