Valleys mapgen code rewrite (#8101)
authorParamat <paramat@users.noreply.github.com>
Thu, 14 Mar 2019 00:27:16 +0000 (00:27 +0000)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2019 00:27:16 +0000 (00:27 +0000)
commitaafbdd442f6bb6d6730fc7fdff76cbd0e3be301b
tree4bd4965a755fc984f968b777cf6fa13b6b7209a2
parente22a69d61a04624fe1eca818740b90dbb958e658
Valleys mapgen code rewrite (#8101)

Shorter, simpler, clearer and more consistent with other mapgens,
while preserving functionality.
Base terrain shape is unchanged.
With the 'vary river depth' option disabled, river surface level
is unchanged.
Behaviour of the 4 heat/humidity/river depth options is very
slightly changed due to bugfixes and code cleanup (the mapgen is
'unstable').
Apply heat and humidity gradients above water_level instead of
above y = 0.
src/mapgen/mapgen_valleys.cpp
src/mapgen/mapgen_valleys.h