fix(client/zones): store debug colours as a table

This commit is contained in:
GaDGeT
2023-08-13 08:57:52 +03:00
committed by GitHub
parent a29ede22af
commit 964e67f9a6

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 vec4(colour?.r or self.debugColour?.r or 255, colour?.g or self.debugColour?.g or 42, colour?.b or self.debugColour?.b or 24, colour?.a or self.debugColour?.a or 100) or nil 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
if not bool and self.debug then if not bool and self.debug then
self.triangles = nil self.triangles = nil