mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
fix(zones): debug functions should not be global
This commit is contained in:
@@ -43,15 +43,15 @@ local function getTriangles(polygon)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function up(a, b)
|
local function up(a, b)
|
||||||
return a.y > b.y
|
return a.y > b.y
|
||||||
end
|
end
|
||||||
|
|
||||||
function down(a, b)
|
local function down(a, b)
|
||||||
return a.y < b.y
|
return a.y < b.y
|
||||||
end
|
end
|
||||||
|
|
||||||
function makeTriangles(t)
|
local function makeTriangles(t)
|
||||||
if t[3] and t[4] then
|
if t[3] and t[4] then
|
||||||
triangles[#triangles + 1] = mat(t[1], t[2], t[3])
|
triangles[#triangles + 1] = mat(t[1], t[2], t[3])
|
||||||
triangles[#triangles + 1] = mat(t[2], t[3], t[4])
|
triangles[#triangles + 1] = mat(t[2], t[3], t[4])
|
||||||
|
|||||||
Reference in New Issue
Block a user