findSpawnPos: Add setting for max height above water level
commitc0a7c670a465b4c05d90a8a4e8001797ec4e628a
authorparamat <mat.gregory@virginmedia.com>
Thu, 29 Oct 2015 00:17:48 +0000 (29 00:17 +0000)
committerparamat <mat.gregory@virginmedia.com>
Thu, 29 Oct 2015 20:03:15 +0000 (29 20:03 +0000)
tree4bc48c7c9cf8b80925564e2ea48f94726c0e3f18
parent182b3fd2831a7deb22d709e7c285eca3a57a5678
findSpawnPos: Add setting for max height above water level

Increase default from 6 to 16 to help with mgv7 and mgfractal
Large-scale or alternative mapgens can result in a lowland spawn point not
being found, causing a spawn at (0, 0, 0) possibly buried underground
The max height is now settable to allow correct player spawn
in any mapgen or when using custom noise parameters
builtin/settingtypes.txt
minetest.conf.example
src/defaultsettings.cpp
src/server.cpp