[Scummvm-cvs-logs] SF.net SVN: scummvm:[52511] scummvm/trunk/engines/sci/engine/kevent.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Sep 4 00:51:29 CEST 2010


Revision: 52511
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52511&view=rev
Author:   thebluegr
Date:     2010-09-03 22:51:27 +0000 (Fri, 03 Sep 2010)

Log Message:
-----------
SCI: Fixed bug #3058865 - "Jones in the Fast Lane CD: Graphics Missing"

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kevent.cpp

Modified: scummvm/trunk/engines/sci/engine/kevent.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kevent.cpp	2010-09-03 22:15:08 UTC (rev 52510)
+++ scummvm/trunk/engines/sci/engine/kevent.cpp	2010-09-03 22:51:27 UTC (rev 52511)
@@ -176,8 +176,18 @@
 
 	// Wait a bit here, so that the CPU isn't maxed out when the game
 	// is waiting for user input (e.g. when showing text boxes) - bug
-	// #3037874.
-	g_system->delayMillis(10);
+	// #3037874. This works when games do benchmarking at the beginning,
+	// because most of them call kAnimate for benchmarking without
+	// calling kGetEvent in between (rightly so).
+	if (g_sci->getGameId() == GID_JONES && g_sci->getEngineState()->currentRoomNumber() == 764) {
+		// Jones CD is an exception, as it incorrectly calls GetEvent
+		// while benchmarking. Thus, don't delay here for room 764 in
+		// Jones (the speed test room), otherwise speed testing will
+		// fail and the game won't show any views, as it will think that
+		// the user has a slow machine - bug #3058865
+	} else {
+		g_system->delayMillis(10);
+	}
 
 	return s->r_acc;
 }


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