diff options
author | paramat <mat.gregory@virginmedia.com> | 2016-12-27 17:00:47 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-01-08 21:18:11 +0000 |
commit | ddcf8422a229c4965233177f6315847a6773a20c (patch) | |
tree | b4efae7121aa912c36b8b9184bfbabcaf6979604 /src/player.cpp | |
parent | 1fee649f1586c39510169f4dbc84b6c7aed12cfd (diff) | |
download | minetest-ddcf8422a229c4965233177f6315847a6773a20c.tar.gz minetest-ddcf8422a229c4965233177f6315847a6773a20c.tar.bz2 minetest-ddcf8422a229c4965233177f6315847a6773a20c.zip |
Map generation limit: Fix checks for block/sector over-limit
Fix the maths that check if any part of a mapblock or sector is over the
set map_generation_limit.
Therefore avoid the loading of any over-limit blocks that were previously
generated when map_generation_limit was larger. The set limit can vary
for a world because it is not yet a per-world mapgen parameter, even when
it is sometimes it will be changed deliberately.
Therefore avoid a player being returned to world centre if they re-enter
a world while being over-limit.
Fix the createSector() crash caused by a mob spawning over-limit in an
over-limit mapblock
Diffstat (limited to 'src/player.cpp')
0 files changed, 0 insertions, 0 deletions