summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-30 17:10:34 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-30 17:10:34 +0300
commitc92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd (patch)
tree322dd2beb25c7f430b99a86ff11c5d39216341a3 /src/being/being.cpp
parente1a7468be5bd512e8aa7d1aa7ce4ccaf66077f98 (diff)
downloadmv-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.tar.gz
mv-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.tar.bz2
mv-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.tar.xz
mv-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.zip
Add workaround for fix animated sprites animation time for new sprites.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index aa956389d..e0186e6d3 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -2520,8 +2520,14 @@ void Being::setSprite(const unsigned int slot,
}
if (equipmentSprite)
+ {
equipmentSprite->setSpriteDirection(getSpriteDirection());
+ // call reset here is not the best idea, but for now this is
+ // only way to sync just loaded sprite
+ reset();
+ }
+
CompoundSprite::setSprite(slot, equipmentSprite);
mSpriteDraw[slot] = id;