From 78e438b7043eff243a21833d4709ef432eb7a818 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Dec 2015 21:38:56 +0300 Subject: Fix animation time for new animated sprites. --- src/being/compoundsprite.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/being/compoundsprite.h') diff --git a/src/being/compoundsprite.h b/src/being/compoundsprite.h index 4a7ed6fb0..babf6fc60 100644 --- a/src/being/compoundsprite.h +++ b/src/being/compoundsprite.h @@ -119,6 +119,12 @@ class CompoundSprite notfinal : public Sprite static void setEnableDelay(bool b) { mEnableDelay = b; } + int getLastTime() const A_WARN_UNUSED + { return mLastTime; } + + int getStartTime() const A_WARN_UNUSED + { return mStartTime; } + private: void redraw() const; @@ -137,6 +143,8 @@ class CompoundSprite notfinal : public Sprite mutable int mOffsetX; mutable int mOffsetY; + int mStartTime; + int mLastTime; std::vector mSprites; #ifndef USE_SDL2 mutable int mNextRedrawTime; -- cgit v1.2.3-70-g09d2