[Scummvm-cvs-logs] SF.net SVN: scummvm: [23609] scummvm/branches/branch-0-9-0/engines/kyra/script_v1.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Thu Jul 27 02:10:25 CEST 2006


Revision: 23609
Author:   lordhoto
Date:     2006-07-26 17:10:20 -0700 (Wed, 26 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23609&view=rev

Log Message:
-----------
Workaround for bug #1498221 ("KYRA1: Glitches when meeting Zanthia"). (backport)

Modified Paths:
--------------
    scummvm/branches/branch-0-9-0/engines/kyra/script_v1.cpp
Modified: scummvm/branches/branch-0-9-0/engines/kyra/script_v1.cpp
===================================================================
--- scummvm/branches/branch-0-9-0/engines/kyra/script_v1.cpp	2006-07-27 00:09:13 UTC (rev 23608)
+++ scummvm/branches/branch-0-9-0/engines/kyra/script_v1.cpp	2006-07-27 00:10:20 UTC (rev 23609)
@@ -753,6 +753,20 @@
 	if (maxTime - 1 <= 0)
 		maxTime = 1;
 
+	// Workaround for bug #1498221 "KYRA1: Glitches when meeting Zanthia"
+	// the original didn'to do a forced screen update after displaying a wsa frame
+	// while we have to do it, which make brandon disappear for a short moment,
+	// which shouldn't happen. So we're not updating the screen for this special
+	// case too.
+	if (startFrame == 18 && endFrame == 18 && _currentRoom == 45) {
+		_movieObjects[wsaIndex]->setX(xpos);
+		_movieObjects[wsaIndex]->setY(ypos);
+		_movieObjects[wsaIndex]->setDrawPage(0);
+		_movieObjects[wsaIndex]->displayFrame(18);
+		delay(waitTime * _tickLength);
+		return 0;
+	}
+
 	_movieObjects[wsaIndex]->setX(xpos);
 	_movieObjects[wsaIndex]->setY(ypos);
 	_movieObjects[wsaIndex]->setDrawPage(0);


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