fix(client/zones): force debug colour values to be integers

for some reason scripts not using oal treat any float above 0 as 255 when used as a colour value
This commit is contained in:
DokaDoka
2023-08-13 15:56:05 +10:00
parent 964e67f9a6
commit 4b99aa0953

View File

@@ -265,7 +265,7 @@ local function setDebug(self, bool, colour)
insideZones[self.id] = nil insideZones[self.id] = nil
end end
self.debugColour = bool and { r = colour?.r or self.debugColour?.r or 255, g = colour?.g or self.debugColour?.g or 42, b = colour?.b or self.debugColour?.b or 24, a = colour?.a or self.debugColour?.a or 100 } or nil self.debugColour = bool and { r = glm.tointeger(colour?.r or self.debugColour?.r or 255), g = glm.tointeger(colour?.g or self.debugColour?.g or 42), b = glm.tointeger(colour?.b or self.debugColour?.b or 24), a = glm.tointeger(colour?.a or self.debugColour?.a or 100) } or nil
if not bool and self.debug then if not bool and self.debug then
self.triangles = nil self.triangles = nil