]> git.lizzy.rs Git - dragonfireclient.git/commit
Biomemap: Avoid empty biomemap entry to fix failing biome dust (#7393)
authorParamat <paramat@users.noreply.github.com>
Sat, 2 Jun 2018 02:20:09 +0000 (03:20 +0100)
committerGitHub <noreply@github.com>
Sat, 2 Jun 2018 02:20:09 +0000 (03:20 +0100)
commit99143f494711034068685b6ee845ce19fa09d7d9
treeaee8a35185cc669dba00505d9a83bd2a03db648f
parent162ffd7fba9d4e79a29f65686f3efbebaee9cee8
Biomemap: Avoid empty biomemap entry to fix failing biome dust (#7393)

'generateBiomes()' constructs the biomemap as it generates biomes.
The biome calculated at first stone surface encountered is added to
the biomemap.
Previously, if no stone surface was encountered in a mapchunk column
the biomemap was left empty for that (x, z) position, causing biome
dust and water surface decoration placement to fail.

If at the base of a mapchunk column the biomemap is empty, add the
currently active biome to the biomemap, or if biome is NULL calculate
it for this position and add it to the biomemap.
src/mapgen/mapgen.cpp