From 3022c623d6eebdb7827f8f60b3e05dfd3bf677be Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Wed, 12 Aug 2009 07:37:08 +0000 Subject: 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 --- engines/draci/animation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/draci') 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]; -- cgit v1.2.3