summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 96c94cc92..49d3ae4c7 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -4081,16 +4081,22 @@ void Being::setHorse(const int horseId)
FOR_EACH (SpriteRefs, it, mHorseInfo->downSprites)
{
SpriteReference *const ref = *it;
- mDownHorseSprites.push_back(AnimatedSprite::load(
+ AnimatedSprite *const sprite = AnimatedSprite::load(
ref->sprite,
- ref->variant));
+ ref->variant);
+ mDownHorseSprites.push_back(sprite);
+ sprite->play(mSpriteAction);
+ sprite->setSpriteDirection(mSpriteDirection);
}
FOR_EACH (SpriteRefs, it, mHorseInfo->upSprites)
{
SpriteReference *const ref = *it;
- mUpHorseSprites.push_back(AnimatedSprite::load(
+ AnimatedSprite *const sprite = AnimatedSprite::load(
ref->sprite,
- ref->variant));
+ ref->variant);
+ mUpHorseSprites.push_back(sprite);
+ sprite->play(mSpriteAction);
+ sprite->setSpriteDirection(mSpriteDirection);
}
}
}