diff options
-rw-r--r-- | dalos.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -356,7 +356,7 @@ dalosp.canvas = { obj = dalosp.cross.south end end - if obj then dalosp.menu.add_object(self, obj) end + if obj then dalosp.menu.add_object(self, obj, self.menu.x, self.menu.y) end self.menu.x = nil self.menu.y = nil self:draw() @@ -451,8 +451,8 @@ dalosp.menu = { end end, - add_object = function (canvas, object) - object.constructor(canvas, { counter = object.counter, x = 25, y = 25 }) + add_object = function (canvas, object, x, y) + object.constructor(canvas, { counter = object.counter, x = (x or 25) + 0, y = (y or 25) + 0}) object.counter = object.counter + 1 end, |