Fixed high memory usage issue

This commit is contained in:
OTCv8
2020-01-14 01:09:33 +01:00
parent 26c347d2bc
commit 11ad766308
16 changed files with 111 additions and 37 deletions

View File

@@ -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()