fix dragqueen and containers

This commit is contained in:
Henrique Santiago
2012-01-20 00:33:11 -02:00
parent 9b9e837e97
commit bd63bde722
7 changed files with 87 additions and 21 deletions

View File

@@ -1,10 +1,10 @@
function UIMap:onDragEnter(mousePos)
local tile = self:getTile(mousePosition)
local tile = self:getTile(mousePos)
if not tile then return false end
local thing = tile:getTopMoveThing()
if not thing then return false end
self.currentDragThing = thing
setTargetCursor()
return true