diff options
author | Pixel <pixel@nobis-crew.org> | 2009-12-19 16:49:01 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-12-19 16:49:01 -0800 |
commit | b95784072d8e65763785fbbb5fff2df308e37708 (patch) | |
tree | 19df82ff1bec0b5a0627448037601fb0b33c0c15 | |
parent | 442c3b3ce4c431f2a9760000f56c86f239728225 (diff) |
Actually spawning the objects added by the cross menu where the cross menu is.
-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, |