Remove calls to deprecated Lua bitlib
This commit is contained in:
@@ -5,7 +5,7 @@ function factory () return function ()
|
||||
local r = math.random (0, 255)
|
||||
local g = math.random (0, 255)
|
||||
local b = math.random (0, 255)
|
||||
local rgba = bit32.lshift (r, 24) + bit32.lshift (g, 16) + bit32.lshift (b, 8) + 0xff
|
||||
local rgba = (r << 24) + (g << 16) + (b << 8) + 0xff
|
||||
grp:set_rgba(rgba)
|
||||
end
|
||||
end end
|
||||
|
||||
Reference in New Issue
Block a user