Skip to content

Commit

Permalink
Fix for sprite lagging when pushing creatures to diagonal
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
GustavoContreiras authored Mar 3, 2019
1 parent fafe196 commit edcbd62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(interval, g_game.getServerBeat());

Expand Down

0 comments on commit edcbd62

Please sign in to comment.