From a199f1aa431f872bc13c5df5a9afad0e52a1ee1d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 27 Mar 2012 19:23:52 +0300 Subject: Add pause animation tag. Example: --- src/animatedsprite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/animatedsprite.cpp') diff --git a/src/animatedsprite.cpp b/src/animatedsprite.cpp index 6b791fdd4..136bea946 100644 --- a/src/animatedsprite.cpp +++ b/src/animatedsprite.cpp @@ -146,7 +146,8 @@ bool AnimatedSprite::updateCurrentAnimation(unsigned int time) mFrameTime += time; while ((mFrameTime > static_cast(mFrame->delay) - && mFrame->delay > 0) || mFrame->type != Frame::ANIMATION) + && mFrame->delay > 0) || (mFrame->type != Frame::ANIMATION + && mFrame->type != Frame::PAUSE)) { bool fail(true); mFrameTime -= static_cast(mFrame->delay); -- cgit v1.2.3-70-g09d2