From edcbd621b30c98491775cc3665780aa5ce21da7f Mon Sep 17 00:00:00 2001 From: Gustavo Contreiras Date: Sat, 2 Mar 2019 22:50:03 -0300 Subject: [PATCH] Fix for sprite lagging when pushing creatures to diagonal I don't know if this is right but it solves the problem. You can set factor to 1.5 too, don't know which is better. --- src/client/creature.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/creature.cpp b/src/client/creature.cpp index d29eac56e..c2cc25cbf 100644 --- a/src/client/creature.cpp +++ b/src/client/creature.cpp @@ -899,6 +899,9 @@ int Creature::getStepDuration(bool ignoreDiagonal, Otc::Direction dir) float factor = 3; if(g_game.getClientVersion() <= 810) factor = 2; + + if(g_game.getClientVersion() >= 1098) + factor = 1; interval = std::max(interval, g_game.getServerBeat());