From b95784072d8e65763785fbbb5fff2df308e37708 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 19 Dec 2009 16:49:01 -0800 Subject: Actually spawning the objects added by the cross menu where the cross menu is. --- dalos.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dalos.lua') diff --git a/dalos.lua b/dalos.lua index d4cb5ad..ff55f20 100644 --- a/dalos.lua +++ b/dalos.lua @@ -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, -- cgit v1.2.3