mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
* 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:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user