chore: types

mostly types anyway.
This commit is contained in:
Linden
2023-07-31 16:29:27 +10:00
parent f11668b95c
commit 9d98b9aada
6 changed files with 59 additions and 51 deletions

View File

@@ -202,8 +202,8 @@ local function startCreator(arg, useLast)
local rightX, rightY = getRelativePos(vec2(xCoord, yCoord), vec2(xCoord + 2, yCoord), GetGameplayCamRot(2).z)
local forwardX, forwardY = getRelativePos(vec2(xCoord, yCoord), vec2(xCoord, yCoord + 2), GetGameplayCamRot(2).z)
DrawLine(xCoord, yCoord, zCoord, rightX, rightY, zCoord, 0, 255, 0, 225)
DrawLine(xCoord, yCoord, zCoord, forwardX, forwardY, zCoord, 0, 255, 0, 225)
DrawLine(xCoord, yCoord, zCoord, rightX, rightY or 0, zCoord, 0, 255, 0, 225)
DrawLine(xCoord, yCoord, zCoord, forwardX, forwardY or 0, zCoord, 0, 255, 0, 225)
end
DrawLine(xCoord, yCoord, zCoord, xCoord + 2, yCoord, zCoord, 0, 0, 255, 225)
@@ -228,6 +228,7 @@ local function startCreator(arg, useLast)
drawLines()
elseif zoneType == 'sphere' then
---@diagnostic disable-next-line: param-type-mismatch
DrawMarker(28, xCoord, yCoord, zCoord, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, height, height, height, 255, 42, 24, 100, false, false, 0, false, false, false, false)
end
@@ -294,7 +295,7 @@ local function startCreator(arg, useLast)
newX = 0.0
end
if math.abs(newY) < minCheck then
if math.abs(newY or 0) < minCheck then
newY = 0.0
end
@@ -319,7 +320,7 @@ local function startCreator(arg, useLast)
newX = 0.0
end
if math.abs(newY) < minCheck then
if math.abs(newY or 0) < minCheck then
newY = 0.0
end
@@ -344,7 +345,7 @@ local function startCreator(arg, useLast)
newX = 0.0
end
if math.abs(newY) < minCheck then
if math.abs(newY or 0) < minCheck then
newY = 0.0
end
@@ -369,7 +370,7 @@ local function startCreator(arg, useLast)
newX = 0.0
end
if math.abs(newY) < minCheck then
if math.abs(newY or 0) < minCheck then
newY = 0.0
end