diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-17 02:21:53 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-17 03:55:25 +0200 |
commit | abeb003b88cc49ba70cdadd2e3adec6eca1751ec (patch) | |
tree | c0f93a83772ef372f3d610948b6f995acd5bf6ce /src/being.cpp | |
parent | 59dc0bffc0f754de8daed29bce3a48e90ea6b4fb (diff) | |
download | ManaVerse-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.cpp | 3 |
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) |