mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
New lightweight minimap format, finish #15
This commit is contained in:
@@ -551,9 +551,8 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u
|
||||
player:stopAutoWalk()
|
||||
|
||||
if autoWalkPos and keyboardModifiers == KeyboardNoModifier and mouseButton == MouseLeftButton then
|
||||
if not player:autoWalk(autoWalkPos) then
|
||||
modules.game_textmessage.displayStatusMessage(tr('There is no way.'))
|
||||
end
|
||||
player.onAutoWalkFail = function() modules.game_textmessage.displayStatusMessage(tr('There is no way.')) end
|
||||
player:autoWalk(autoWalkPos)
|
||||
return true
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user