[Scummvm-cvs-logs] SF.net SVN: scummvm: [27709] scummvm/trunk/engines/gob/inter_v1.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Mon Jun 25 18:16:34 CEST 2007


Revision: 27709
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27709&view=rev
Author:   drmccoy
Date:     2007-06-25 09:16:34 -0700 (Mon, 25 Jun 2007)

Log Message:
-----------
Added a workaround for bug #1726130 ("WEEN: Long delay in the intro")

Modified Paths:
--------------
    scummvm/trunk/engines/gob/inter_v1.cpp

Modified: scummvm/trunk/engines/gob/inter_v1.cpp
===================================================================
--- scummvm/trunk/engines/gob/inter_v1.cpp	2007-06-25 16:15:35 UTC (rev 27708)
+++ scummvm/trunk/engines/gob/inter_v1.cpp	2007-06-25 16:16:34 UTC (rev 27709)
@@ -1647,6 +1647,12 @@
 	lastCalled = now;
 	_noBusyWait = false;
 
+	// WORKAROUND: Ween busy-waits in the intro for a counter to become 5000.
+	// We deliberately slow down busy-waiting, so we shorten the counting, too.
+	if (((_vm->_global->_inter_execPtr - _vm->_game->_totFileData) == 729) &&
+	    (VAR(59) < 4000) && !scumm_stricmp(_vm->_game->_curTotFile, "intro5.tot"))
+		WRITE_VAR(59, 4000);
+
 	switch (cmd) {
 	case 0:
 		_vm->_draw->_showCursor &= ~2;


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