aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorparamat <paramat@users.noreply.github.com>2017-06-04 22:28:32 +0100
committerSmallJoker <mk939@ymail.com>2018-06-03 17:31:59 +0200
commit7aa52fe4e195ad9d66f0bda51688b81d31391346 (patch)
treeadd64962f2b2f6397cf32d5b9aac58d558b7e6af /misc
parent0664b5f77226b7a2308e85898295378e04158923 (diff)
downloadminetest-7aa52fe4e195ad9d66f0bda51688b81d31391346.tar.gz
minetest-7aa52fe4e195ad9d66f0bda51688b81d31391346.tar.bz2
minetest-7aa52fe4e195ad9d66f0bda51688b81d31391346.zip
(Re)spawn players within 'mapgen_limit'
Previously, findSpawnPos() did not take the 'mapgen_limit' setting into account, a small limit often resulted in a spawn out in the void. Use the recently added 'calcMapgenEdges()' to get max spawn range through a new mapgenParams function 'getSpawnRangeMax()'. Previously, when a player respawned into a world, 'objectpos_over_limit()' was used as a check, which was inaccurate. Use the recently added 'saoPosOverLimit()' to get exact mapgen edges. Also fix default value of 'm_sao_limit_min'.
Diffstat (limited to 'misc')
0 files changed, 0 insertions, 0 deletions