Fix auto chase override

master
Eduardo Bart 12 years ago
parent 403ed3c10f
commit 0bb991e14e

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

@ -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

@ -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)

Loading…
Cancel
Save