Merge pull request #34 from MGinshe/patch-1

Fix typo in shapes.lua (ipairs vs ipaits)
This commit is contained in:
vrld 2014-03-18 12:13:33 +01:00
commit fb8c0511cf

View File

@ -247,7 +247,7 @@ end
function CircleShape:intersectsRay(x,y, dx,dy) function CircleShape:intersectsRay(x,y, dx,dy)
local tmin = math_huge local tmin = math_huge
for _, t in ipaits(self:intersectionsWithRay(x,y,dx,dy)) do for _, t in ipairs(self:intersectionsWithRay(x,y,dx,dy)) do
tmin = math_min(t, tmin) tmin = math_min(t, tmin)
end end
return tmin ~= math_huge, tmin return tmin ~= math_huge, tmin