aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/animation.cpp
diff options
context:
space:
mode:
authorDenis Kasak2009-08-12 07:37:08 +0000
committerDenis Kasak2009-08-12 07:37:08 +0000
commit3022c623d6eebdb7827f8f60b3e05dfd3bf677be (patch)
treecfca433d7b5884dab2f36e239bc80d0a6aa3f0ba /engines/draci/animation.cpp
parent8ca10ac3b0527e51a0f72a60e5249525a2746e1c (diff)
downloadscummvm-rg350-3022c623d6eebdb7827f8f60b3e05dfd3bf677be.tar.gz
scummvm-rg350-3022c623d6eebdb7827f8f60b3e05dfd3bf677be.tar.bz2
scummvm-rg350-3022c623d6eebdb7827f8f60b3e05dfd3bf677be.zip
Stopped returning from Animation::nextFrame() early even if the animation has only one frame because such animations may need to have callbacks called too. Fixes intro freeze during mother's lecture.
svn-id: r43313
Diffstat (limited to 'engines/draci/animation.cpp')
-rw-r--r--engines/draci/animation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp
index 84ec6eceab..2865a1daf6 100644
--- a/engines/draci/animation.cpp
+++ b/engines/draci/animation.cpp
@@ -85,8 +85,8 @@ void Animation::markDirtyRect(Surface *surface) {
void Animation::nextFrame(bool force) {
- // If there's only one or no frames, or if the animation is not playing, return
- if (getFrameCount() < 2 || !_playing)
+ // If there are no frames or if the animation is not playing, return
+ if (getFrameCount() == 0 || !_playing)
return;
Drawable *frame = _frames[_currentFrame];