summaryrefslogtreecommitdiff
path: root/dalos.lua
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-12-19 16:49:01 -0800
committerPixel <pixel@nobis-crew.org>2009-12-19 16:49:01 -0800
commitb95784072d8e65763785fbbb5fff2df308e37708 (patch)
tree19df82ff1bec0b5a0627448037601fb0b33c0c15 /dalos.lua
parent442c3b3ce4c431f2a9760000f56c86f239728225 (diff)
Actually spawning the objects added by the cross menu where the cross menu is.
Diffstat (limited to 'dalos.lua')
-rw-r--r--dalos.lua6
1 files changed, 3 insertions, 3 deletions
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,