diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-19 19:57:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-19 19:57:06 +0300 |
commit | 1888670781a0a8f4d14f58e5eab9173feeddfe46 (patch) | |
tree | 2b2ac638c57c89b8417f67136f334e69ff6effd0 /src/being | |
parent | 3e90ddd9ab26d75a6a1e59df096ccdb284247801 (diff) | |
download | plus-1888670781a0a8f4d14f58e5eab9173feeddfe46.tar.gz plus-1888670781a0a8f4d14f58e5eab9173feeddfe46.tar.bz2 plus-1888670781a0a8f4d14f58e5eab9173feeddfe46.tar.xz plus-1888670781a0a8f4d14f58e5eab9173feeddfe46.zip |
Fix default horses direction and action.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/being.cpp | 14 |
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); } } } |