diff options
author | Denis Kasak | 2009-08-12 07:37:08 +0000 |
---|---|---|
committer | Denis Kasak | 2009-08-12 07:37:08 +0000 |
commit | 3022c623d6eebdb7827f8f60b3e05dfd3bf677be (patch) | |
tree | cfca433d7b5884dab2f36e239bc80d0a6aa3f0ba | |
parent | 8ca10ac3b0527e51a0f72a60e5249525a2746e1c (diff) | |
download | scummvm-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
-rw-r--r-- | engines/draci/animation.cpp | 4 |
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]; |