Removed __idiv metamethod from color lib for LuaJIT compatibility.

This commit is contained in:
jussi
2024-05-05 21:39:25 +03:00
parent 348fd4f521
commit 02e1984781

View File

@@ -29,9 +29,6 @@ local metatable = {
__pow = function( c, v ) __pow = function( c, v )
return Color:new( c.r ^ v, c.g ^ v, c.b ^ v, c.a ^ v ) return Color:new( c.r ^ v, c.g ^ v, c.b ^ v, c.a ^ v )
end, end,
__idiv = function( c, v )
return Color:new( c.r // v, c.g // v, c.b // v, c.a // v )
end,
__len = function() __len = function()
return 4 return 4
end, end,