summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-30 21:38:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-30 21:55:00 +0300
commit78e438b7043eff243a21833d4709ef432eb7a818 (patch)
treecbaace2b8a39c078115cd48c803363f7a274ee51 /src/resources
parent88efa77af94256992ba2c05f4d7b5b5a9d01d6e9 (diff)
downloadmv-78e438b7043eff243a21833d4709ef432eb7a818.tar.gz
mv-78e438b7043eff243a21833d4709ef432eb7a818.tar.bz2
mv-78e438b7043eff243a21833d4709ef432eb7a818.tar.xz
mv-78e438b7043eff243a21833d4709ef432eb7a818.zip
Fix animation time for new animated sprites.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/sprite/animatedsprite.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/sprite/animatedsprite.h b/src/resources/sprite/animatedsprite.h
index 03b276a9b..752e66eee 100644
--- a/src/resources/sprite/animatedsprite.h
+++ b/src/resources/sprite/animatedsprite.h
@@ -112,6 +112,9 @@ class AnimatedSprite final : public Sprite
static void setEnableCache(const bool b)
{ mEnableCache = b; }
+ void setLastTime(const int time)
+ { mLastTime = time; }
+
#ifdef UNITTESTS
SpriteDef *getSprite() restrict2
{ return mSprite; }