From abeb003b88cc49ba70cdadd2e3adec6eca1751ec Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 17 Mar 2011 02:21:53 +0200 Subject: Fix other players move animation. As dirty hack added delayed direction. --- src/being.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index 1d5ca7c19..1dc2fd8f8 100644 --- a/src/being.h +++ b/src/being.h @@ -452,6 +452,12 @@ class Being : public ActorSprite, public ConfigListener */ virtual void setDirection(Uint8 direction); + virtual void setDirectionDelayed(Uint8 direction) + { mDirectionDelayed = direction; } + + Uint8 getDirectionDelayed() + { return mDirectionDelayed; } + /** * Returns the direction the being is facing. */ @@ -677,6 +683,8 @@ class Being : public ActorSprite, public ConfigListener Uint16 mSubType; /**< Subtype (graphical view, basically) */ Uint8 mDirection; /**< Facing direction */ + Uint8 mDirectionDelayed; /**< Facing direction */ + Uint8 mSpriteDirection; /**< Facing direction */ std::string mName; /**< Name of character */ std::string mPartyName; -- cgit v1.2.3-60-g2f50