From 650e932ddf7352e50bba42acbc0ff4eda8aa40e2 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sat, 9 Mar 2013 21:28:19 -0500 Subject: Re-add dungeons in new dungeongen.cpp --- src/mapgen_v6.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mapgen_v6.cpp') 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 @@ -1241,6 +1242,14 @@ void MapgenV6::makeChunk(BlockMakeData *data) END OF AGING LOOP ************************/ + /* + 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 */ -- cgit v1.2.3