diff options
author | sfan5 <sfan5@live.de> | 2021-12-17 17:21:14 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-01-30 13:49:26 +0100 |
commit | a9bccb964f6c6ffe9d4f84922d9be640e4dd2f1e (patch) | |
tree | 03d526445df226332c0c376f52957524c14a0d93 /src/mapblock.h | |
parent | 74a384de0acd52410269d160e94f1705cb4de300 (diff) | |
download | minetest-a9bccb964f6c6ffe9d4f84922d9be640e4dd2f1e.tar.gz minetest-a9bccb964f6c6ffe9d4f84922d9be640e4dd2f1e.tar.bz2 minetest-a9bccb964f6c6ffe9d4f84922d9be640e4dd2f1e.zip |
Raise max mapgen limit constant to align with mapblock size
Diffstat (limited to 'src/mapblock.h')
-rw-r--r-- | src/mapblock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapblock.h b/src/mapblock.h index e729fdb1c..a86db7b70 100644 --- a/src/mapblock.h +++ b/src/mapblock.h @@ -601,7 +601,7 @@ typedef std::vector<MapBlock*> MapBlockVect; inline bool objectpos_over_limit(v3f p) { - const float max_limit_bs = MAX_MAP_GENERATION_LIMIT * BS; + const float max_limit_bs = (MAX_MAP_GENERATION_LIMIT + 0.5f) * BS; return p.X < -max_limit_bs || p.X > max_limit_bs || p.Y < -max_limit_bs || |