fix walk interval regression

This commit is contained in:
Eduardo Bart 2012-01-19 02:32:37 -02:00
parent 6ce92a1a64
commit 950730a77f
2 changed files with 1 additions and 2 deletions

View File

@ -216,7 +216,7 @@ void Creature::walk(const Position& oldPos, const Position& newPos)
//if(direction == Otc::NorthWest || direction == Otc::NorthEast || direction == Otc::SouthWest || direction == Otc::SouthEast) //if(direction == Otc::NorthWest || direction == Otc::NorthEast || direction == Otc::SouthWest || direction == Otc::SouthEast)
// walkInterval *= 3; // walkInterval *= 3;
m_walkInterval = (walkInterval / g_game.getServerBeat()) * g_game.getServerBeat(); m_walkInterval = std::ceil(walkInterval / g_game.getServerBeat()) * g_game.getServerBeat();
// no direction needs to be changed when the walk ends // no direction needs to be changed when the walk ends
m_walkTurnDirection = Otc::InvalidDirection; m_walkTurnDirection = Otc::InvalidDirection;

View File

@ -156,7 +156,6 @@ void Game::processAttackCancel()
void Game::processWalkCancel(Otc::Direction direction) void Game::processWalkCancel(Otc::Direction direction)
{ {
logTraceDebug();
m_localPlayer->cancelWalk(direction); m_localPlayer->cancelWalk(direction);
} }