summaryrefslogtreecommitdiff
path: root/src/resources/sprite/animatedsprite.h
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/sprite/animatedsprite.h
parent88efa77af94256992ba2c05f4d7b5b5a9d01d6e9 (diff)
downloadplus-78e438b7043eff243a21833d4709ef432eb7a818.tar.gz
plus-78e438b7043eff243a21833d4709ef432eb7a818.tar.bz2
plus-78e438b7043eff243a21833d4709ef432eb7a818.tar.xz
plus-78e438b7043eff243a21833d4709ef432eb7a818.zip
Fix animation time for new animated sprites.
Diffstat (limited to 'src/resources/sprite/animatedsprite.h')
-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; }