aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen/mapgen_valleys.cpp
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2019-11-22 19:48:18 +0000
committerParamat <paramat@users.noreply.github.com>2019-11-23 01:41:27 +0000
commitec5f59101428d66ce716143fedd34445a4fdcac0 (patch)
tree00b7331a57e7a9f6a9f32fd8de79072305040a56 /src/mapgen/mapgen_valleys.cpp
parentb50a166bb05c4ebe1bf757190f4045d57a0d5f20 (diff)
downloadminetest-ec5f59101428d66ce716143fedd34445a4fdcac0.tar.gz
minetest-ec5f59101428d66ce716143fedd34445a4fdcac0.tar.bz2
minetest-ec5f59101428d66ce716143fedd34445a4fdcac0.zip
Dungeons: Move duplicated y limit checks to generation function
Diffstat (limited to 'src/mapgen/mapgen_valleys.cpp')
-rw-r--r--src/mapgen/mapgen_valleys.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mapgen/mapgen_valleys.cpp b/src/mapgen/mapgen_valleys.cpp
index c4ea5067d..3c6045105 100644
--- a/src/mapgen/mapgen_valleys.cpp
+++ b/src/mapgen/mapgen_valleys.cpp
@@ -260,8 +260,7 @@ void MapgenValleys::makeChunk(BlockMakeData *data)
m_emerge->oremgr->placeAllOres(this, blockseed, node_min, node_max);
// Dungeon creation
- if ((flags & MG_DUNGEONS) && full_node_min.Y >= dungeon_ymin &&
- full_node_max.Y <= dungeon_ymax)
+ if (flags & MG_DUNGEONS)
generateDungeons(stone_surface_max_y);
// Generate the registered decorations