Fix auto chase override

This commit is contained in:
Eduardo Bart 2012-08-18 00:30:40 -03:00
parent 403ed3c10f
commit 0bb991e14e
3 changed files with 9 additions and 7 deletions

View File

@ -3,4 +3,4 @@ Font
texture: verdana-11px-monochrome_cp1252.png
height: 14
glyph-size: 16 16
space-width: 4
space-width: 3

View File

@ -33,7 +33,8 @@ function init()
onFightModeChange = update,
onChaseModeChange = update,
onSafeFightChange = update,
onWalk = check
onWalk = check,
onAutoWalk = check
})
if g_game.isOnline() then
@ -56,7 +57,8 @@ function terminate()
onFightModeChange = update,
onChaseModeChange = update,
onSafeFightChange = update,
onWalk = check
onWalk = check,
onAutoWalk = check
})
end

View File

@ -499,9 +499,9 @@ void Game::walk(Otc::Direction direction)
return;
}
forceWalk(direction);
g_lua.callGlobalField("g_game", "onWalk", direction);
forceWalk(direction);
}
void Game::autoWalk(const std::vector<Otc::Direction>& dirs)
@ -529,9 +529,9 @@ void Game::autoWalk(const std::vector<Otc::Direction>& dirs)
m_localPlayer->preWalk(direction);
}
m_protocolGame->sendAutoWalk(dirs);
g_lua.callGlobalField("g_game", "onAutoWalk", dirs);
m_protocolGame->sendAutoWalk(dirs);
}
void Game::forceWalk(Otc::Direction direction)