summaryrefslogtreecommitdiff
path: root/src/being
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
parente1a7468be5bd512e8aa7d1aa7ce4ccaf66077f98 (diff)
downloadmanaplus-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.tar.gz
manaplus-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.tar.bz2
manaplus-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.tar.xz
manaplus-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.zip
Add workaround for fix animated sprites animation time for new sprites.
Diffstat (limited to 'src/being')
-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;