summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 2f2e69d16..e66f3284b 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -187,6 +187,7 @@ Being::Being(int id, Type type, Uint16 subtype, Map *map):
mAction(STAND),
mSubType(0xFFFF),
mDirection(DOWN),
+ mDirectionDelayed(0),
mSpriteDirection(DIRECTION_DOWN),
mDispName(0),
mShowName(false),
@@ -947,6 +948,8 @@ void Being::setDirection(Uint8 direction)
mDirection = direction;
+ mDirectionDelayed = 0;
+
// if the direction does not change much, keep the common component
int mFaceDirection = mDirection & direction;
if (!mFaceDirection)