mirror of
https://github.com/edubart/otclient.git
synced 2025-12-22 16:27:10 +01:00
Started 1050 implementation and fix ups:
* Dat now loads (new animations aren't yet functional). * Fixed the way we reference client versions. TODO: Write new animation functionality & find out protocol changes.
This commit is contained in:
@@ -846,11 +846,11 @@ int Creature::getStepDuration(bool ignoreDiagonal, Otc::Direction dir)
|
||||
else
|
||||
interval /= speed;
|
||||
|
||||
if(g_game.getProtocolVersion() >= 900)
|
||||
if(g_game.getClientVersion() >= 900)
|
||||
interval = (interval / g_game.getServerBeat()) * g_game.getServerBeat();
|
||||
|
||||
float factor = 3;
|
||||
if(g_game.getProtocolVersion() <= 810)
|
||||
if(g_game.getClientVersion() <= 810)
|
||||
factor = 2;
|
||||
|
||||
interval = std::max<int>(interval, g_game.getServerBeat());
|
||||
|
||||
Reference in New Issue
Block a user