[Scummvm-cvs-logs] SF.net SVN: scummvm: [27167] scummvm/trunk/engines/saga/animation.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu Jun 7 14:39:38 CEST 2007


Revision: 27167
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27167&view=rev
Author:   thebluegr
Date:     2007-06-07 05:39:38 -0700 (Thu, 07 Jun 2007)

Log Message:
-----------
Limited frame count hack to apply to videos only

Modified Paths:
--------------
    scummvm/trunk/engines/saga/animation.cpp

Modified: scummvm/trunk/engines/saga/animation.cpp
===================================================================
--- scummvm/trunk/engines/saga/animation.cpp	2007-06-07 12:11:33 UTC (rev 27166)
+++ scummvm/trunk/engines/saga/animation.cpp	2007-06-07 12:39:38 UTC (rev 27167)
@@ -363,10 +363,11 @@
 		return;
 	}
 
-	// HACK: the animation starts playing before sfwaitframes is called in IHNM, which
-	// causes the game to wait forever. Raise the framecount by 10 to avoid lockup
+	// HACK: When a video is played in IHNM, the animation starts playing before sfwaitframes 
+	// is called, which causes the game to wait forever. Raise the framecount by 10 to avoid lockup
 	// TODO: remove this hack
-	_vm->_frameCount += 10;
+	if (_vm->_interface->getMode() == kPanelVideo)
+		_vm->_frameCount += 10;
 
 	if (anim->completed < anim->cycles) {
 		frame = anim->currentFrame;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list