summaryrefslogtreecommitdiff
path: root/src/animatedsprite.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-27 19:23:52 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-27 19:23:52 +0300
commita199f1aa431f872bc13c5df5a9afad0e52a1ee1d (patch)
treed98bc9d256f98714f0d9ebf635e7043900a10d58 /src/animatedsprite.cpp
parent3d24b9f024dc9114165530aa58dc4a7832ca2753 (diff)
downloadmanaplus-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.gz
manaplus-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.bz2
manaplus-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.tar.xz
manaplus-a199f1aa431f872bc13c5df5a9afad0e52a1ee1d.zip
Add pause animation tag.
Example: <pause delay="10"/>
Diffstat (limited to 'src/animatedsprite.cpp')
-rw-r--r--src/animatedsprite.cpp3
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);