Fix tile skipping in 9.6
This commit is contained in:
parent
3c1a5f24e8
commit
1dc7dc0cfc
|
@ -273,7 +273,7 @@ void Creature::walk(const Position& oldPos, const Position& newPos)
|
||||||
float interval = 1000;
|
float interval = 1000;
|
||||||
if(groundSpeed > 0 && m_speed > 0)
|
if(groundSpeed > 0 && m_speed > 0)
|
||||||
interval = (1000.0f * groundSpeed) / m_speed;
|
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_walkAnimationInterval = interval;
|
||||||
m_walkInterval = interval;
|
m_walkInterval = interval;
|
||||||
|
|
|
@ -898,8 +898,8 @@ void ProtocolGame::parsePlayerStats(const InputMessagePtr& msg)
|
||||||
m_localPlayer->setStamina(stamina);
|
m_localPlayer->setStamina(stamina);
|
||||||
m_localPlayer->setSoul(soul);
|
m_localPlayer->setSoul(soul);
|
||||||
|
|
||||||
if(g_game.getClientVersion() >= 910)
|
if(g_game.getFeature(Otc::GameSkillsBase))
|
||||||
m_localPlayer->setSpeed(msg->getU16());
|
msg->getU16(); // base speed
|
||||||
|
|
||||||
if(g_game.getFeature(Otc::GamePlayerRegenerationTime))
|
if(g_game.getFeature(Otc::GamePlayerRegenerationTime))
|
||||||
msg->getU16();
|
msg->getU16();
|
||||||
|
|
Loading…
Reference in New Issue