diff --git a/src/otclient/creature.cpp b/src/otclient/creature.cpp index 1caf4c9b..0e78b439 100644 --- a/src/otclient/creature.cpp +++ b/src/otclient/creature.cpp @@ -672,9 +672,11 @@ Point Creature::getDrawOffset() int Creature::getStepDuration() { - int speed = m_speed * 2; - int groundSpeed = 0; + int speed = m_speed; + if(g_game.getFeature(Otc::GameNewSpeedLaw)) + speed *= 2; + int groundSpeed = 0; Position tilePos = m_lastStepToPosition; if(!tilePos.isValid()) tilePos = m_position; diff --git a/src/otclient/game.cpp b/src/otclient/game.cpp index bfa7568e..c89f7570 100644 --- a/src/otclient/game.cpp +++ b/src/otclient/game.cpp @@ -40,6 +40,7 @@ Game::Game() { resetGameStates(); m_protocolVersion = 0; + m_clientVersion = 0; } void Game::terminate() @@ -1265,7 +1266,7 @@ void Game::setClientVersion(int version) if(isOnline()) stdext::throw_exception("Unable to change client version while online"); - if(version != 0 && (version < 981 || version > 981)) + if(version != 0 && (version < 810 || version > 981)) stdext::throw_exception(stdext::format("Client version %d not supported", version)); m_clientVersion = version;