diff --git a/.luacheckrc b/.luacheckrc index 2805ba7..95c5344 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -2,7 +2,6 @@ return { std = "lua51+love", ignore = { "211", -- Unused local variable. - "212", -- Unused argument. "212/self", -- Unused argument self. "213", -- Unused loop variable. "311", -- Value assigned to a local variable is unused. diff --git a/intersect.lua b/intersect.lua index a6f3ca5..4e62e7d 100644 --- a/intersect.lua +++ b/intersect.lua @@ -454,11 +454,11 @@ function intersect.point_aabb_collide(a, b_pos, b_hs, into) end function intersect.circle_aabb_overlap(a, a_rad, b_pos, b_hs) - return intersect.aabb_circle_overlap(b_pos, b_pos, a, a_rad) + return intersect.aabb_circle_overlap(b_pos, b_hs, a, a_rad) end function intersect.circle_aabb_collide(a, a_rad, b_pos, b_hs, into) - return intersect.reverse_msv(intersect.aabb_circle_collide(b_pos, b_pos, a, a_rad, into)) + return intersect.reverse_msv(intersect.aabb_circle_collide(b_pos, b_hs, a, a_rad, into)) end function intersect.circle_line_collide(a, a_rad, b_start, b_end, b_rad, into)