Fix #294
This commit is contained in:
parent
a85ca0fb17
commit
8c016b143a
|
@ -334,10 +334,6 @@ void Creature::stopWalk()
|
||||||
if(!m_walking)
|
if(!m_walking)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// reset walk animation states
|
|
||||||
m_walkOffset = Point(0,0);
|
|
||||||
m_walkAnimationPhase = 0;
|
|
||||||
|
|
||||||
// stops the walk right away
|
// stops the walk right away
|
||||||
terminateWalk();
|
terminateWalk();
|
||||||
}
|
}
|
||||||
|
@ -588,6 +584,10 @@ void Creature::terminateWalk()
|
||||||
|
|
||||||
m_walking = false;
|
m_walking = false;
|
||||||
m_walkedPixels = 0;
|
m_walkedPixels = 0;
|
||||||
|
|
||||||
|
// reset walk animation states
|
||||||
|
m_walkOffset = Point(0,0);
|
||||||
|
m_walkAnimationPhase = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Creature::setName(const std::string& name)
|
void Creature::setName(const std::string& name)
|
||||||
|
|
Loading…
Reference in New Issue