fix walk interval regression
This commit is contained in:
parent
6ce92a1a64
commit
950730a77f
|
@ -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)
|
||||
// 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
|
||||
m_walkTurnDirection = Otc::InvalidDirection;
|
||||
|
|
|
@ -156,7 +156,6 @@ void Game::processAttackCancel()
|
|||
|
||||
void Game::processWalkCancel(Otc::Direction direction)
|
||||
{
|
||||
logTraceDebug();
|
||||
m_localPlayer->cancelWalk(direction);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue