[Scummvm-cvs-logs] CVS: scummvm/bs2 function.cpp,1.7,1.8

Jonathan Gray khalek at users.sourceforge.net
Sat Aug 30 08:23:04 CEST 2003


Update of /cvsroot/scummvm/scummvm/bs2
In directory sc8-pr-cvs1:/tmp/cvs-serv27687

Modified Files:
	function.cpp 
Log Message:
properly close down when playing demo

Index: function.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/bs2/function.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- function.cpp	23 Aug 2003 14:42:37 -0000	1.7
+++ function.cpp	30 Aug 2003 15:21:51 -0000	1.8
@@ -442,15 +442,16 @@
 	}
 
 	// returns non-zero if Ctrl-Q was pressed to quit the game during the credits
-
-	if (rv || DEMO)		// if Ctrl-Q pressed during credits, or if this is the playable demo
+*/
+	//if (rv || DEMO)		// if Ctrl-Q pressed during credits, or if this is the playable demo
+	if (g_sword2->_gameId == GID_SWORD2_DEMO)
 	{
 		Close_game();	//close engine systems down
 		CloseAppWindow();
 		exit(0);		// quit the game
 	}
 
-*/
+
 	return (IR_CONT);
 }
 //------------------------------------------------------------------------------------





More information about the Scummvm-git-logs mailing list