From 7452d5399b9c7516abfc9f97bf5db70aff2ce0fa Mon Sep 17 00:00:00 2001 From: paramat Date: Wed, 31 Dec 2014 00:19:05 +0000 Subject: MgV5/6/7: Generate dungeons above water level Use/add stone_surface_max_y to speed-optimise/guide dungeon generation MgV7: Don't let mountain terrain chop dungeons at mapchunk borders Make mountain terrain update stone_surface_max_y for caves in mountains --- src/mapgen_v6.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mapgen_v6.cpp') diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp index 5c989a773..b97512535 100644 --- a/src/mapgen_v6.cpp +++ b/src/mapgen_v6.cpp @@ -500,7 +500,7 @@ void MapgenV6::makeChunk(BlockMakeData *data) } // Add dungeons - if (flags & MG_DUNGEONS) { + if ((flags & MG_DUNGEONS) && (stone_surface_max_y >= node_min.Y)) { DungeonParams dp; dp.np_rarity = nparams_dungeon_rarity; -- cgit v1.2.3