mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Raise max mapgen limit constant to align with mapblock size
This commit is contained in:
parent
74a384de0a
commit
a9bccb964f
9 changed files with 77 additions and 15 deletions
|
@ -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 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue