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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Sep 13 20:35:47 CEST 2009


Revision: 44062
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44062&view=rev
Author:   lordhoto
Date:     2009-09-13 18:35:42 +0000 (Sun, 13 Sep 2009)

Log Message:
-----------
Fix bug when skipping Kyrandia 1 Intro, when no restart save game file is present.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/kyra_lok.cpp

Modified: scummvm/trunk/engines/kyra/kyra_lok.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra_lok.cpp	2009-09-13 14:44:37 UTC (rev 44061)
+++ scummvm/trunk/engines/kyra/kyra_lok.cpp	2009-09-13 18:35:42 UTC (rev 44062)
@@ -309,6 +309,7 @@
 			setGameFlag(0xEF);
 			_seqPlayerFlag = true;
 			seq_intro();
+			_seqPlayerFlag = false;
 
 			if (_flags.isDemo) {
 				_screen->fadeToBlack();
@@ -318,9 +319,8 @@
 			if (shouldQuit())
 				return Common::kNoError;
 
-			if (_skipIntroFlag && _abortIntroFlag)
+			if (_skipIntroFlag && _abortIntroFlag && saveFileLoadable(0))
 				resetGameFlag(0xEF);
-			_seqPlayerFlag = false;
 		}
 		_eventList.clear();
 		startup();
@@ -401,7 +401,7 @@
 	snd_playTheme(1, -1);
 	if (_gameToLoad == -1) {
 		enterNewScene(_currentCharacter->sceneId, _currentCharacter->facing, 0, 0, 1);
-		if (_abortIntroFlag && _skipIntroFlag) {
+		if (_abortIntroFlag && _skipIntroFlag && saveFileLoadable(0)) {
 			_menuDirectlyToLoad = true;
 			_screen->setMouseCursor(1, 1, _shapes[0]);
 			_screen->showMouse();


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