[Scummvm-cvs-logs] SF.net SVN: scummvm:[43472] scummvm/branches/branch-1-0-0/engines/cruise/ cruise_main.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Mon Aug 17 13:53:53 CEST 2009


Revision: 43472
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43472&view=rev
Author:   dreammaster
Date:     2009-08-17 11:53:52 +0000 (Mon, 17 Aug 2009)

Log Message:
-----------
Backport of switch of event loop while/do to do/while, to ensure event handling occurs even when the game is under heavy load

Modified Paths:
--------------
    scummvm/branches/branch-1-0-0/engines/cruise/cruise_main.cpp

Modified: scummvm/branches/branch-1-0-0/engines/cruise/cruise_main.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/engines/cruise/cruise_main.cpp	2009-08-17 11:51:42 UTC (rev 43471)
+++ scummvm/branches/branch-1-0-0/engines/cruise/cruise_main.cpp	2009-08-17 11:53:52 UTC (rev 43472)
@@ -1738,7 +1738,7 @@
 			// Delay for the specified amount of time, but still respond to events
 			bool skipEvents = false;
 
-			while (currentTick < lastTick + _gameSpeed) {
+			do {
 				g_system->delayMillis(10);
 				currentTick = g_system->getMillis();
 
@@ -1749,7 +1749,7 @@
 
 				if (_vm->getDebugger()->isAttached())
 					_vm->getDebugger()->onFrame();
-			}
+			} while (currentTick < lastTick + _gameSpeed);
 		} else {
 			manageEvents();
 


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