[Scummvm-cvs-logs] SF.net SVN: scummvm: [22904] scummvm/trunk/engines/kyra/saveload.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Jun 3 20:38:45 CEST 2006


Revision: 22904
Author:   lordhoto
Date:     2006-06-03 11:38:36 -0700 (Sat, 03 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22904&view=rev

Log Message:
-----------
Don't allow creation of save file when the user quits the game while the intro.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/saveload.cpp
Modified: scummvm/trunk/engines/kyra/saveload.cpp
===================================================================
--- scummvm/trunk/engines/kyra/saveload.cpp	2006-06-03 18:34:57 UTC (rev 22903)
+++ scummvm/trunk/engines/kyra/saveload.cpp	2006-06-03 18:38:36 UTC (rev 22904)
@@ -244,6 +244,7 @@
 void KyraEngine::saveGame(const char *fileName, const char *saveName) {
 	debugC(9, kDebugLevelMain, "saveGame('%s', '%s')", fileName, saveName);
 	Common::OutSaveFile *out;
+	if (_quitFlag) return;
 
 	if (!(out = _saveFileMan->openForSaving(fileName))) {
 		warning("Can't create file '%s', game not saved", fileName);


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