[Scummvm-cvs-logs] SF.net SVN: scummvm:[35879] scummvm/trunk/engines/made/script.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sat Jan 17 05:50:13 CET 2009


Revision: 35879
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35879&view=rev
Author:   eriktorbjorn
Date:     2009-01-17 04:50:13 +0000 (Sat, 17 Jan 2009)

Log Message:
-----------
Make sure that "quit" events are handled immediately. This fixes a warning - or
possibly worse - about an invalid opcode when quitting the game.

Modified Paths:
--------------
    scummvm/trunk/engines/made/script.cpp

Modified: scummvm/trunk/engines/made/script.cpp
===================================================================
--- scummvm/trunk/engines/made/script.cpp	2009-01-16 23:29:48 UTC (rev 35878)
+++ scummvm/trunk/engines/made/script.cpp	2009-01-17 04:50:13 UTC (rev 35879)
@@ -427,6 +427,8 @@
 
 void ScriptInterpreter::cmd_exit() {
 	_vm->quitGame();
+	// Make sure the "quit" event is handled immediately
+	_vm->handleEvents();
 }
 
 void ScriptInterpreter::cmd_return() {
@@ -434,6 +436,8 @@
 	// Check if returning from main function
 	if (_localStackPos == kScriptStackSize) {
 		_vm->quitGame();
+		// Make sure the "quit" event is handled immediately
+		_vm->handleEvents();
 		return;
 	}
 


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