[Scummvm-cvs-logs] SF.net SVN: scummvm:[48207] scummvm/trunk/engines/scumm/script_v6.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Mar 9 00:37:00 CET 2010


Revision: 48207
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48207&view=rev
Author:   fingolfin
Date:     2010-03-08 23:36:59 +0000 (Mon, 08 Mar 2010)

Log Message:
-----------
Workaround for bug #1878514: COMI: Glitch when turning pages in recipe book

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/script_v6.cpp

Modified: scummvm/trunk/engines/scumm/script_v6.cpp
===================================================================
--- scummvm/trunk/engines/scumm/script_v6.cpp	2010-03-08 22:25:38 UTC (rev 48206)
+++ scummvm/trunk/engines/scumm/script_v6.cpp	2010-03-08 23:36:59 UTC (rev 48207)
@@ -745,6 +745,27 @@
 		return;
 	}
 
+	// WORKAROUND bug #1878514: When turning pages in the recipe book
+	// (found on Blood Island), there is a brief moment where it displays
+	// text from two different pages at the same time.
+	//
+	// The content of the books is drawing (in an endless loop) by local
+	// script 2007. Changing the page is handled by script 2006, which
+	// first stops script 2007; then switches the page; then restarts
+	// script 2007. But it fails to clear the blast texts beforehand.
+	// Hence, the next time blast text is drawn, both the old one (from
+	// the old instance of script 2007) and the new text (from the new
+	// instance) are briefly drawn simultaneously.
+	//
+	// This looks like a script bug to me (a missing call to clearTextQueue).
+	// But this could also hint at a subtle bug in ScummVM; we should check
+	// whether this bug occurs with the original engine or not.
+	if (_game.id == GID_CMI && script == 2007 &&
+		_currentRoom == 62 && vm.slot[_currentScript].number == 2006) {
+
+		removeBlastTexts();
+	}
+
 	runScript(script, (flags & 1) != 0, (flags & 2) != 0, args);
 }
 


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