summaryrefslogtreecommitdiff
path: root/src/being/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-08 23:18:34 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-08 23:18:34 +0300
commitd472a3cf2a40169ffb4eca900e9cc53e6bcc4cc7 (patch)
treebedcffde98ff439af310c6d2d06430a2de6b5670 /src/being/being.h
parent877bfe276efcf663de5a8af8fa9464aaf935ca2d (diff)
downloadmv-d472a3cf2a40169ffb4eca900e9cc53e6bcc4cc7.tar.gz
mv-d472a3cf2a40169ffb4eca900e9cc53e6bcc4cc7.tar.bz2
mv-d472a3cf2a40169ffb4eca900e9cc53e6bcc4cc7.tar.xz
mv-d472a3cf2a40169ffb4eca900e9cc53e6bcc4cc7.zip
Use enum SpriteDirection form sprite direction in being.
Diffstat (limited to 'src/being/being.h')
-rw-r--r--src/being/being.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/being/being.h b/src/being/being.h
index 9c7ef3404..23afd549f 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -485,7 +485,7 @@ class Being notfinal : public ActorSprite,
* Returns the direction the being is facing.
*/
SpriteDirection::Type getSpriteDirection() const A_WARN_UNUSED
- { return static_cast<SpriteDirection::Type>(mSpriteDirection); }
+ { return mSpriteDirection; }
void setPosition(const Vector &pos) override;
@@ -1003,7 +1003,7 @@ class Being notfinal : public ActorSprite,
uint16_t mSubType; /**< Subtype (graphical view, basically) */
uint8_t mDirection; /**< Facing direction */
uint8_t mDirectionDelayed; /**< Facing direction */
- uint8_t mSpriteDirection; /**< Facing direction */
+ SpriteDirection::Type mSpriteDirection; /**< Facing direction */
bool mShowName;
bool mIsGM;