Fix tile skipping in 9.6

This commit is contained in:
Eduardo Bart 2012-07-31 19:29:15 -03:00
parent 3c1a5f24e8
commit 1dc7dc0cfc
2 changed files with 3 additions and 3 deletions

View File

@ -273,7 +273,7 @@ void Creature::walk(const Position& oldPos, const Position& newPos)
float interval = 1000;
if(groundSpeed > 0 && m_speed > 0)
interval = (1000.0f * groundSpeed) / m_speed;
interval = std::ceil(interval / g_game.getServerBeat()) * g_game.getServerBeat();
interval = std::floor(interval / g_game.getServerBeat()) * g_game.getServerBeat();
m_walkAnimationInterval = interval;
m_walkInterval = interval;

View File

@ -898,8 +898,8 @@ void ProtocolGame::parsePlayerStats(const InputMessagePtr& msg)
m_localPlayer->setStamina(stamina);
m_localPlayer->setSoul(soul);
if(g_game.getClientVersion() >= 910)
m_localPlayer->setSpeed(msg->getU16());
if(g_game.getFeature(Otc::GameSkillsBase))
msg->getU16(); // base speed
if(g_game.getFeature(Otc::GamePlayerRegenerationTime))
msg->getU16();