diff options
author | paramat <paramat@users.noreply.github.com> | 2017-07-28 03:31:11 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-07-30 18:40:55 +0100 |
commit | b20d01a3f19ea7ad1e788077af1ed5769648e3a1 (patch) | |
tree | 2d30ee6e8771bfddeb5140e4304e03795ef81190 /src/mapgen_v7.cpp | |
parent | 238d752fa3021fa7294a4df79bfa0b8a46f4a018 (diff) | |
download | minetest-b20d01a3f19ea7ad1e788077af1ed5769648e3a1.tar.gz minetest-b20d01a3f19ea7ad1e788077af1ed5769648e3a1.tar.bz2 minetest-b20d01a3f19ea7ad1e788077af1ed5769648e3a1.zip |
Dungeons: Use biome 'node_stone' if normal stone types not detected
Construct dungeons from the node defined as biome 'node_stone' if
'mapgen_stone', 'mapgen_desert_stone' and 'mapgen_sandstone' are not
detected.
Feature long-intended by kwolekr/hmmmm and present in code as a TODO.
Diffstat (limited to 'src/mapgen_v7.cpp')
-rw-r--r-- | src/mapgen_v7.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mapgen_v7.cpp b/src/mapgen_v7.cpp index e63c648bc..f254a74d8 100644 --- a/src/mapgen_v7.cpp +++ b/src/mapgen_v7.cpp @@ -308,7 +308,10 @@ void MapgenV7::makeChunk(BlockMakeData *data) // Init biome generator, place biome-specific nodes, and build biomemap biomegen->calcBiomeNoise(node_min); - MgStoneType stone_type = generateBiomes(biome_zero_level); + + MgStoneType mgstone_type; + content_t biome_stone; + generateBiomes(&mgstone_type, &biome_stone, water_level - 1); // Generate caverns, tunnels and classic caves if (flags & MG_CAVES) { @@ -328,7 +331,7 @@ void MapgenV7::makeChunk(BlockMakeData *data) // Generate dungeons if (flags & MG_DUNGEONS) - generateDungeons(stone_surface_max_y, stone_type); + generateDungeons(stone_surface_max_y, mgstone_type, biome_stone); // Generate the registered decorations if (flags & MG_DECORATIONS) |