From 132f9a00e454ca28e8650c319eecb0458033c753 Mon Sep 17 00:00:00 2001 From: Henrique Santiago Date: Fri, 6 Jan 2012 22:49:43 -0200 Subject: [PATCH] fix walk again --- src/otclient/core/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/otclient/core/game.cpp b/src/otclient/core/game.cpp index 01aa2cc8..11aade78 100644 --- a/src/otclient/core/game.cpp +++ b/src/otclient/core/game.cpp @@ -106,7 +106,7 @@ void Game::processInventoryChange(int slot, const ItemPtr& item) void Game::walk(Otc::Direction direction) { - if(!m_online || !m_localPlayer->canWalk(direction) || !checkBotProtection()) + if(!m_online || !m_localPlayer->canWalk(direction) || (!checkBotProtection() && m_localPlayer->getNextWalkDirection() == Otc::InvalidDirection)) return; cancelFollow();