Mapgen Flat: Fix and improve getSpawnLevelAtPoint() (#8756)
authorParamat <paramat@users.noreply.github.com>
Tue, 6 Aug 2019 01:30:28 +0000 (02:30 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Aug 2019 01:30:28 +0000 (02:30 +0100)
commit8da35c22d1c8933090330b2f3c44b4cf2c6e6760
treeff9ddd97d7cfd08c34603c7c13c4065934869396
parentac856b20bfc438ad05cda7649d68155f8b73462b
Mapgen Flat: Fix and improve getSpawnLevelAtPoint() (#8756)

Previously, this wrongly returned ground level (a position containing
a solid node) as spawn level.
Return ground level + 2 (+ 2 to spawn above biome 'dust' nodes).
Improve codestyle and make more consistent with generateTerrain().
src/mapgen/mapgen_flat.cpp