mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
* Fixed calling local in an if statement where it is not required (lol). * Fixed an issue with the auto walk checker.
This commit is contained in:
@@ -672,6 +672,9 @@ Point Creature::getDrawOffset()
|
||||
int Creature::getStepDuration(bool ignoreDiagonal)
|
||||
{
|
||||
int speed = m_speed;
|
||||
if(speed < 1)
|
||||
return 0;
|
||||
|
||||
if(g_game.getFeature(Otc::GameNewSpeedLaw))
|
||||
speed *= 2;
|
||||
|
||||
|
Reference in New Issue
Block a user