aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen_v6.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2016-05-22 16:50:43 -0400
committerkwolekr <kwolekr@minetest.net>2016-05-27 23:23:58 -0400
commitc8fd232678698b8be469b3792e7acc9418231a38 (patch)
tree95f1c68889a3a40b2efad1ed87beb8a80d54c133 /src/mapgen_v6.cpp
parentfd0efb21c3d40a963a813d73a09bb80df625b247 (diff)
downloadminetest-c8fd232678698b8be469b3792e7acc9418231a38.tar.gz
minetest-c8fd232678698b8be469b3792e7acc9418231a38.tar.bz2
minetest-c8fd232678698b8be469b3792e7acc9418231a38.zip
Dungeongen: Remove dependency on Mapgen
Diffstat (limited to 'src/mapgen_v6.cpp')
-rw-r--r--src/mapgen_v6.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp
index 65acfaf93..103120b6a 100644
--- a/src/mapgen_v6.cpp
+++ b/src/mapgen_v6.cpp
@@ -559,6 +559,8 @@ void MapgenV6::makeChunk(BlockMakeData *data)
if ((flags & MG_DUNGEONS) && (stone_surface_max_y >= node_min.Y)) {
DungeonParams dp;
+ dp.seed = seed;
+
dp.np_rarity = nparams_dungeon_rarity;
dp.np_density = nparams_dungeon_density;
dp.np_wetness = nparams_dungeon_wetness;
@@ -585,8 +587,8 @@ void MapgenV6::makeChunk(BlockMakeData *data)
dp.notifytype = GENNOTIFY_DUNGEON;
}
- DungeonGen dgen(this, &dp);
- dgen.generate(blockseed, full_node_min, full_node_max);
+ DungeonGen dgen(ndef, &gennotify, &dp);
+ dgen.generate(vm, blockseed, full_node_min, full_node_max);
}
// Add top and bottom side of water to transforming_liquid queue