mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Few minor fixes here and there:
* Fixed miniwindow cancelling (sorry Summ! :D) * Fixed pathFind to check floor change tiles * Fixed buying/selling stackable items in pv < 860 * Added force walk to the first step of auto walking for open tibia
This commit is contained in:
@@ -29,8 +29,8 @@ function init()
|
||||
g_ui.importStyle('styles/countwindow.otui')
|
||||
|
||||
connect(g_game, {
|
||||
onGameStart = show,
|
||||
onGameEnd = hide,
|
||||
onGameStart = onGameStart,
|
||||
onGameEnd = onGameEnd,
|
||||
onLoginAdvice = onLoginAdvice
|
||||
}, true)
|
||||
|
||||
@@ -98,8 +98,8 @@ end
|
||||
|
||||
function terminate()
|
||||
disconnect(g_game, {
|
||||
onGameStart = show,
|
||||
onGameEnd = hide,
|
||||
onGameStart = onGameStart,
|
||||
onGameEnd = onGameEnd,
|
||||
onLoginAdvice = onLoginAdvice
|
||||
})
|
||||
|
||||
@@ -109,6 +109,19 @@ function terminate()
|
||||
gameRootPanel:destroy()
|
||||
end
|
||||
|
||||
function onGameStart()
|
||||
show()
|
||||
|
||||
-- open tibia has delay in auto walking
|
||||
if not g_game.isOfficialTibia() then
|
||||
g_game.enableFeature(GameForceFirstAutoWalkStep)
|
||||
end
|
||||
end
|
||||
|
||||
function onGameEnd()
|
||||
hide()
|
||||
end
|
||||
|
||||
function show()
|
||||
connect(g_app, { onClose = tryExit })
|
||||
logoutButton:show()
|
||||
|
Reference in New Issue
Block a user