mirror of
https://github.com/mehah/otclient
synced 2026-08-15 16:29:06 -04:00
fix: restore modules.game_interface.lastManualWalk for game_bot (#1757)
This commit is contained in:
parent
dedc7378e8
commit
cee2851016
2 changed files with 5 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ countWindow = nil
|
|||
logoutWindow = nil
|
||||
exitWindow = nil
|
||||
bottomSplitter = nil
|
||||
-- timestamp of the last manual keyboard walk, refreshed by game_walk and read
|
||||
-- by consumers (e.g. game_bot) to pause automation while the player walks;
|
||||
-- defined here so it is always present whenever this module is loaded
|
||||
lastManualWalk = 0
|
||||
limitedZoom = false
|
||||
currentViewMode = 0
|
||||
leftIncreaseSidePanels = nil
|
||||
|
|
|
|||
|
|
@ -120,6 +120,7 @@ local function walk(dir)
|
|||
end
|
||||
end
|
||||
|
||||
modules.game_interface.lastManualWalk = g_clock.millis()
|
||||
g_game.walk(dir)
|
||||
return true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue