Fixed #169 Thanks Quintinon and #170! Also some other fixes:

* 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:
BeniS
2013-01-08 15:55:41 +13:00
parent 3ed2eeb104
commit 702fce0be8
6 changed files with 13 additions and 5 deletions

View File

@@ -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;