From 861cfd848473db6c36b0debb7152d98ca8017062 Mon Sep 17 00:00:00 2001 From: paramat Date: Mon, 12 Feb 2018 00:52:44 +0000 Subject: Dungeons: Avoid generation in multiple liquid nodes and 'airlike' Previously only 'mapgen water source' and 'mapgen river water source' were checked for. Games can use multiple liquid nodes defined for biomes, many of which will not be aliased to those 2 mapgen aliases, causing floating dungeons to generate in some liquids. Now we check for liquid drawtype instead, so can remove liquid nodes from dungeonparams. Also check for 'airlike' drawtype instead of 'CONTENT_AIR' to avoid generation in 'airlike' nodes in some rare situations. This will also be needed for when we add definable biome air nodes. --- src/mapgen/dungeongen.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/mapgen/dungeongen.h') diff --git a/src/mapgen/dungeongen.h b/src/mapgen/dungeongen.h index 182581447..1e3d8375d 100644 --- a/src/mapgen/dungeongen.h +++ b/src/mapgen/dungeongen.h @@ -41,8 +41,6 @@ int dir_to_facedir(v3s16 d); struct DungeonParams { s32 seed; - content_t c_water; - content_t c_river_water; content_t c_wall; content_t c_alt_wall; content_t c_stair; -- cgit v1.2.3