summaryrefslogtreecommitdiff
path: root/src/mapgen/dungeongen.h
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2018-02-12 00:52:44 +0000
committerparamat <mat.gregory@virginmedia.com>2018-02-13 03:48:39 +0000
commit861cfd848473db6c36b0debb7152d98ca8017062 (patch)
tree3a46ec477b361010b43b361bc9910c8b57dbc2be /src/mapgen/dungeongen.h
parent1156088db740fed69051201fb943feaff3b4f678 (diff)
downloadminetest-861cfd848473db6c36b0debb7152d98ca8017062.tar.gz
minetest-861cfd848473db6c36b0debb7152d98ca8017062.tar.bz2
minetest-861cfd848473db6c36b0debb7152d98ca8017062.zip
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.
Diffstat (limited to 'src/mapgen/dungeongen.h')
-rw-r--r--src/mapgen/dungeongen.h2
1 files changed, 0 insertions, 2 deletions
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;