From 8c016b143a3be655c644d944805ab6e4940c9503 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Mon, 4 Mar 2013 23:59:12 -0300 Subject: [PATCH] Fix #294 --- src/client/creature.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/creature.cpp b/src/client/creature.cpp index 97cfd444..22345200 100644 --- a/src/client/creature.cpp +++ b/src/client/creature.cpp @@ -334,10 +334,6 @@ void Creature::stopWalk() if(!m_walking) return; - // reset walk animation states - m_walkOffset = Point(0,0); - m_walkAnimationPhase = 0; - // stops the walk right away terminateWalk(); } @@ -588,6 +584,10 @@ void Creature::terminateWalk() m_walking = false; m_walkedPixels = 0; + + // reset walk animation states + m_walkOffset = Point(0,0); + m_walkAnimationPhase = 0; } void Creature::setName(const std::string& name)