Fix #283 and more:

* Might have fixed death window issue but not confirmed
* Stop hotkey window from display while offline
* Moved some required features to >= 840 if statement
  (protocol 840/842 arent supported in otclient yet)
This commit is contained in:
BeniS
2013-02-28 01:01:51 +13:00
parent ef20f59a98
commit 0bf909d52f
6 changed files with 24 additions and 14 deletions

View File

@@ -109,6 +109,9 @@ function offline()
end
function show()
if not g_game.isOnline() then
return
end
hotkeysWindow:show()
hotkeysWindow:raise()
hotkeysWindow:focus()
@@ -190,7 +193,6 @@ function save()
local hotkeys = hotkeySettings
if perServer then
hotkeys[G.host] = {}
hotkeys = hotkeys[G.host]
end
@@ -210,6 +212,8 @@ function save()
}
end
table.dump(hotkeys)
hotkeyList = hotkeys
g_settings.setNode('game_hotkeys', hotkeySettings)
g_settings.save()