Fix tile skipping in 9.6

master
Eduardo Bart 12 years ago
parent 3c1a5f24e8
commit 1dc7dc0cfc

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

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

Loading…
Cancel
Save