Rework hotkeys manager, fix many issues on it

This commit is contained in:
Eduardo Bart
2013-01-30 18:23:26 -02:00
parent 377c013dfe
commit 5bf03c50d6
15 changed files with 379 additions and 350 deletions

View File

@@ -92,7 +92,7 @@ end
function online()
local player = g_game.getLocalPlayer()
if player then
local char = player:getName()
local char = g_game.getCharacterName()
local lastCombatControls = g_settings.getNode('LastCombatControls')
@@ -116,7 +116,7 @@ function offline()
local player = g_game.getLocalPlayer()
if player then
local char = player:getName()
local char = g_game.getCharacterName()
lastCombatControls[char] = {
fightMode = g_game.getFightMode(),
chaseMode = g_game.getChaseMode(),