diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-27 19:23:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-27 19:23:52 +0300 |
commit | a199f1aa431f872bc13c5df5a9afad0e52a1ee1d (patch) | |
tree | d98bc9d256f98714f0d9ebf635e7043900a10d58 /src/animatedsprite.cpp | |
parent | 3d24b9f024dc9114165530aa58dc4a7832ca2753 (diff) | |
download | mv-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.gz mv-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.bz2 mv-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.xz mv-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.zip |
Add pause animation tag.
Example: <pause delay="10"/>
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r-- | src/animatedsprite.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<unsigned>(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<unsigned>(mFrame->delay); |