Fixed #169 Thanks Quintinon and #170! Also some other fixes:

* Fixed calling local in an if statement where it is not required (lol).
* Fixed an issue with the auto walk checker.
This commit is contained in:
BeniS
2013-01-08 15:55:41 +13:00
parent 3ed2eeb104
commit 702fce0be8
6 changed files with 13 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ function init()
onGameStart = show,
onGameEnd = hide,
onLoginAdvice = onLoginAdvice,
onWalk = onWalk,
onWalk = onWalk
}, true)
connect(LocalPlayer, {

View File

@@ -86,6 +86,7 @@ function UIGameMap:onMouseRelease(mousePosition, mouseButton)
local ret = modules.game_interface.processMouseAction(mousePosition, mouseButton, autoWalkPos, lookThing, useThing, creatureThing, multiUseThing)
if ret then
modules.game_interface.cancelAutoWalkCheck()
self.cancelNextRelease = true
end

View File

@@ -87,6 +87,7 @@ function UIItem:onMouseRelease(mousePosition, mouseButton)
self.cancelNextRelease = true
return true
elseif modules.game_interface.processMouseAction(mousePosition, mouseButton, nil, item, item, nil, item) then
modules.game_interface.cancelAutoWalkCheck()
return true
end
return false