File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2078,7 +2078,7 @@ ServerMapSector *ServerMap::createSector(v2s16 p2d)
2078
2078
Block minimum nodepos = blockpos * mapblocksize.
2079
2079
Block maximum nodepos = (blockpos + 1) * mapblocksize - 1.
2080
2080
*/
2081
- const static u16 map_gen_limit = MYMIN (MAX_MAP_GENERATION_LIMIT,
2081
+ const u16 map_gen_limit = MYMIN (MAX_MAP_GENERATION_LIMIT,
2082
2082
g_settings->getU16 (" map_generation_limit" ));
2083
2083
if (p2d.X * MAP_BLOCKSIZE < -map_gen_limit
2084
2084
|| (p2d.X + 1 ) * MAP_BLOCKSIZE - 1 > map_gen_limit
Original file line number Diff line number Diff line change @@ -653,7 +653,7 @@ typedef std::vector<MapBlock*> MapBlockVect;
653
653
654
654
inline bool objectpos_over_limit (v3f p)
655
655
{
656
- const static float map_gen_limit_bs = MYMIN (MAX_MAP_GENERATION_LIMIT,
656
+ const float map_gen_limit_bs = MYMIN (MAX_MAP_GENERATION_LIMIT,
657
657
g_settings->getU16 (" map_generation_limit" )) * BS;
658
658
return (p.X < -map_gen_limit_bs
659
659
|| p.X > map_gen_limit_bs
@@ -676,7 +676,7 @@ inline bool objectpos_over_limit(v3f p)
676
676
*/
677
677
inline bool blockpos_over_limit (v3s16 p)
678
678
{
679
- const static u16 map_gen_limit = MYMIN (MAX_MAP_GENERATION_LIMIT,
679
+ const u16 map_gen_limit = MYMIN (MAX_MAP_GENERATION_LIMIT,
680
680
g_settings->getU16 (" map_generation_limit" ));
681
681
return (p.X * MAP_BLOCKSIZE < -map_gen_limit
682
682
|| (p.X + 1 ) * MAP_BLOCKSIZE - 1 > map_gen_limit
You can’t perform that action at this time.
0 commit comments