fixed newRectangle bug where width and height were not set

This commit is contained in:
Tim Anema 2014-10-27 21:41:25 -04:00
parent a1d6d33ab5
commit 3f482ef0c6

View File

@ -343,7 +343,7 @@ end
-- new rectangle
function light_world:newRectangle(x, y, w, h)
self.isShadows = true
return self:newBody("rectangle", x, y, width, height)
return self:newBody("rectangle", x, y, w, h)
end
-- new circle