mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 06:33:26 +02:00
Fixed high memory usage issue
This commit is contained in:
@@ -20,7 +20,8 @@ function init()
|
||||
onPositionChange = onPositionChange,
|
||||
onWalk = onWalk,
|
||||
onTeleport = onTeleport,
|
||||
onWalkFinish = onWalkFinish
|
||||
onWalkFinish = onWalkFinish,
|
||||
onCancelWalk = onCancelWalk
|
||||
})
|
||||
|
||||
modules.game_interface.getRootPanel().onFocusChange = stopSmartWalk
|
||||
@@ -255,6 +256,10 @@ function onWalkFinish(player)
|
||||
end
|
||||
end
|
||||
|
||||
function onCancelWalk(player)
|
||||
player:lockWalk(50)
|
||||
end
|
||||
|
||||
function walk(dir)
|
||||
lastManualWalk = g_clock.millis()
|
||||
local player = g_game.getLocalPlayer()
|
||||
|
Reference in New Issue
Block a user