summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 93dd6abc5..fbdd6fc79 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1355,7 +1355,7 @@ void Being::setDirection(const uint8_t direction)
{
dir = SpriteDirection::LEFT;
}
- mSpriteDirection = static_cast<uint8_t>(dir);
+ mSpriteDirection = dir;
CompoundSprite::setSpriteDirection(dir);
if (mEmotionSprite)
@@ -3109,8 +3109,7 @@ void Being::setEmote(const uint8_t emotion, const int emote_time)
if (mEmotionSprite)
{
mEmotionSprite->play(mSpriteAction);
- mEmotionSprite->setSpriteDirection(
- static_cast<SpriteDirection::Type>(mSpriteDirection));
+ mEmotionSprite->setSpriteDirection(mSpriteDirection);
}
else
{