More work towards autowalking (needs more work).

* Added tile minimap color override.
* Changed zoom in and out of minimap from inverted control.
This commit is contained in:
BeniS
2013-01-23 01:01:30 +13:00
parent f470cba09e
commit 01e48fbcc8
8 changed files with 39 additions and 77 deletions

View File

@@ -592,7 +592,7 @@ bool Game::walk(Otc::Direction direction)
return false;
}
m_localPlayer->stopAutoWalkUpdate();
m_localPlayer->stopAutoWalk();
g_lua.callGlobalField("g_game", "onWalk", direction);
@@ -857,7 +857,7 @@ void Game::attack(CreaturePtr creature)
cancelFollow();
setAttackingCreature(creature);
m_localPlayer->stopAutoWalkUpdate();
m_localPlayer->stopAutoWalk();
if(m_protocolVersion >= 963) {
if(creature)
@@ -881,7 +881,7 @@ void Game::follow(CreaturePtr creature)
cancelAttack();
setFollowingCreature(creature);
m_localPlayer->stopAutoWalkUpdate();
m_localPlayer->stopAutoWalk();
if(m_protocolVersion >= 963) {
if(creature)
@@ -902,7 +902,7 @@ void Game::cancelAttackAndFollow()
if(isAttacking())
setAttackingCreature(nullptr);
m_localPlayer->stopAutoWalkUpdate();
m_localPlayer->stopAutoWalk();
m_protocolGame->sendCancelAttackAndFollow();