Edited map limits
This commit is contained in:
parent
7d9385d80a
commit
6dd10d6a8f
12
api.lua
12
api.lua
@ -1690,12 +1690,12 @@ end
|
||||
|
||||
-- check if within map limits (-30911 to 30927)
|
||||
function within_limits(pos, radius)
|
||||
if (pos.x - radius) > -30911
|
||||
and (pos.x + radius) < 30927
|
||||
and (pos.y - radius) > -30911
|
||||
and (pos.y + radius) < 30927
|
||||
and (pos.z - radius) > -30911
|
||||
and (pos.z + radius) < 30927 then
|
||||
if (pos.x - radius) > -30913
|
||||
and (pos.x + radius) < 30928
|
||||
and (pos.y - radius) > -30913
|
||||
and (pos.y + radius) < 30928
|
||||
and (pos.z - radius) > -30913
|
||||
and (pos.z + radius) < 30928 then
|
||||
return true -- within limits
|
||||
end
|
||||
return false -- beyond limits
|
||||
|
Loading…
x
Reference in New Issue
Block a user