mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 17:19:20 +02:00
Fix minimap desync, old issue #10
This commit is contained in:
parent
356368ddae
commit
ef9a4c5d04
@ -16,8 +16,8 @@ function init()
|
||||
connect(g_game, {
|
||||
onGameStart = online,
|
||||
onGameEnd = offline,
|
||||
onForceWalk = center,
|
||||
})
|
||||
connect(LocalPlayer, { onPositionChange = center })
|
||||
|
||||
g_keyboard.bindKeyDown('Ctrl+M', toggle)
|
||||
|
||||
@ -44,8 +44,8 @@ function terminate()
|
||||
disconnect(g_game, {
|
||||
onGameStart = online,
|
||||
onGameEnd = offline,
|
||||
onForceWalk = center,
|
||||
})
|
||||
disconnect(LocalPlayer, { onPositionChange = center })
|
||||
|
||||
if g_game.isOnline() then
|
||||
saveMap()
|
||||
|
Loading…
x
Reference in New Issue
Block a user