diff --git a/sonic-radiance.love/birb/modules/world/baseworld.lua b/sonic-radiance.love/birb/modules/world/baseworld.lua index b4f85fa..6e74316 100644 --- a/sonic-radiance.love/birb/modules/world/baseworld.lua +++ b/sonic-radiance.love/birb/modules/world/baseworld.lua @@ -148,8 +148,8 @@ function BaseWorld:getActorsInRect(x, y, w, h) local query = {} local x2, y2 = x + w, y + h for i,v in ipairs(self.actors) do - if (v.x >= x) and (v.x + v.w >= x2) and - (v.y >= y) and (v.y + v.h >= y2) then + if (v.x >= x) and (v.x + v.w <= x2) and + (v.y >= y) and (v.y + v.h <= y2) then table.insert(query, v) end @@ -195,7 +195,7 @@ function BaseWorld:registerBody(body) end function BaseWorld:updateBody(body) - return self.x, self.y, {}, 0 + return 0, 0, {}, 0 end function BaseWorld:removeBody(body)