No unnecessary lines!

This commit is contained in:
karai17 2016-07-24 11:48:58 -03:00
parent 3c3eebd66f
commit 6daa845533
2 changed files with 1 additions and 7 deletions

View File

@ -302,11 +302,8 @@ function color_mt.__newindex(t, k, v)
if type(t) == "cdata" then
if type(k) == "number" then
t._c[k-1] = v
return
end
end
rawset(color, k, v)
end
color_mt.__tostring = color.to_string

View File

@ -651,11 +651,8 @@ function mat4_mt.__newindex(t, k, v)
if type(t) == "cdata" then
if type(k) == "number" then
t._m[k-1] = v
return
end
end
rawset(mat4, k, v)
end
mat4_mt.__tostring = mat4.to_string
@ -673,7 +670,7 @@ function mat4_mt.__eq(a, b)
assert(mat4.is_mat4(b), "__eq: Wrong argument type for right hand operant. (<cpml.mat4> expected)")
for i = 1, 16 do
if not utils.tolerance(b[i] - a[i], constants.FLT_EPSILON) then
if not utils.tolerance(b[i]-a[i], constants.FLT_EPSILON) then
return false
end
end