mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
fixed newRectangle bug where width and height were not set
This commit is contained in:
parent
a1d6d33ab5
commit
3f482ef0c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user