]> git.lizzy.rs Git - dragonfireclient.git/commit
Dungeons: Avoid generation in multiple liquid nodes and 'airlike'
authorparamat <paramat@users.noreply.github.com>
Mon, 12 Feb 2018 00:52:44 +0000 (00:52 +0000)
committerparamat <mat.gregory@virginmedia.com>
Tue, 13 Feb 2018 03:48:39 +0000 (03:48 +0000)
commit861cfd848473db6c36b0debb7152d98ca8017062
tree3a46ec477b361010b43b361bc9910c8b57dbc2be
parent1156088db740fed69051201fb943feaff3b4f678
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.cpp
src/mapgen/dungeongen.h
src/mapgen/mapgen.cpp
src/mapgen/mapgen_v6.cpp