Mapgen caves: Re-order generation to fix cavern bug
authorParamat <paramat@users.noreply.github.com>
Sun, 29 Apr 2018 06:20:46 +0000 (07:20 +0100)
committerGitHub <noreply@github.com>
Sun, 29 Apr 2018 06:20:46 +0000 (07:20 +0100)
commit54606e103d5b2d2bace6d57c45e48804c5dec487
tree013c8ad66dfcc60c2ccb947c7e2c6cf030fcedde
parentbb3baef30f8afcfec046050b1ef3b606a2c1248a
Mapgen caves: Re-order generation to fix cavern bug

Previously, caverns confused tunnel generation causing biome top and filler
nodes to appear in caverns.
Split 'generateCaves()' into 2 functions to separate tunnel and large
randomwalk cave generation.
In each mapgen re-order cave generation to generate tunnels before caverns.
src/mapgen/mapgen.cpp
src/mapgen/mapgen.h
src/mapgen/mapgen_carpathian.cpp
src/mapgen/mapgen_flat.cpp
src/mapgen/mapgen_fractal.cpp
src/mapgen/mapgen_v5.cpp
src/mapgen/mapgen_v7.cpp
src/mapgen/mapgen_valleys.cpp