summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-17 02:21:53 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-17 03:55:25 +0200
commitabeb003b88cc49ba70cdadd2e3adec6eca1751ec (patch)
treec0f93a83772ef372f3d610948b6f995acd5bf6ce /src/being.cpp
parent59dc0bffc0f754de8daed29bce3a48e90ea6b4fb (diff)
downloadManaVerse-abeb003b88cc49ba70cdadd2e3adec6eca1751ec.tar.gz
ManaVerse-abeb003b88cc49ba70cdadd2e3adec6eca1751ec.tar.bz2
ManaVerse-abeb003b88cc49ba70cdadd2e3adec6eca1751ec.tar.xz
ManaVerse-abeb003b88cc49ba70cdadd2e3adec6eca1751ec.zip
Fix other players move animation.
As dirty hack added delayed direction.
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)