diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-30 17:10:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-30 17:10:34 +0300 |
commit | c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd (patch) | |
tree | 322dd2beb25c7f430b99a86ff11c5d39216341a3 /src | |
parent | e1a7468be5bd512e8aa7d1aa7ce4ccaf66077f98 (diff) | |
download | plus-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.tar.gz plus-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.tar.bz2 plus-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.tar.xz plus-c92ceeaa5e82bd5e237ca1fc4a3798fb61b81cfd.zip |
Add workaround for fix animated sprites animation time for new sprites.
Diffstat (limited to 'src')
-rw-r--r-- | src/being/being.cpp | 6 |
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; |