fix walk again

This commit is contained in:
Henrique Santiago 2012-01-06 22:49:43 -02:00
parent 5d0d1432ed
commit 132f9a00e4
1 changed files with 1 additions and 1 deletions

View File

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