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

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon May 18 00:26:14 CEST 2009


Revision: 40661
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40661&view=rev
Author:   lordhoto
Date:     2009-05-17 22:26:14 +0000 (Sun, 17 May 2009)

Log Message:
-----------
Cleanup.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/lol.cpp
    scummvm/trunk/engines/kyra/sequences_lol.cpp

Modified: scummvm/trunk/engines/kyra/lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/lol.cpp	2009-05-17 22:20:00 UTC (rev 40660)
+++ scummvm/trunk/engines/kyra/lol.cpp	2009-05-17 22:26:14 UTC (rev 40661)
@@ -535,7 +535,6 @@
 
 Common::Error LoLEngine::go() {
 	setupPrologueData(true);
-	_sound->setSoundList(&_soundData[kMusicIntro]);
 
 	if (!saveFileLoadable(0) || _flags.isDemo)
 		showIntro();
@@ -612,10 +611,13 @@
 	_tim = new TIMInterpreter_LoL(this, _screen, _system);
 	assert(_tim);
 
-	if (!shouldQuit() && (processSelection == 0 || processSelection == 3))
+	if (shouldQuit())
+		return Common::kNoError;
+
+	if (processSelection == 0 || processSelection == 3)
 		startup();
 
-	if (!shouldQuit() && processSelection == 0)
+	if (processSelection == 0)
 		startupNew();
 
 	if (!shouldQuit() && (processSelection == 0 || processSelection == 3)) {

Modified: scummvm/trunk/engines/kyra/sequences_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sequences_lol.cpp	2009-05-17 22:20:00 UTC (rev 40660)
+++ scummvm/trunk/engines/kyra/sequences_lol.cpp	2009-05-17 22:26:14 UTC (rev 40661)
@@ -89,6 +89,7 @@
 		memset(_selectionAnimTimers, 0, sizeof(_selectionAnimTimers));
 		memset(_screen->getPalette(1), 0, 768);
 
+		_sound->setSoundList(&_soundData[kMusicIntro]);
 	} else {
 		delete _chargenWSA; _chargenWSA = 0;
 		
@@ -99,21 +100,11 @@
 		memset(pal, 0, 768);
 		_screen->setScreenPalette(pal);
 
-		// TODO: We need to check if the SYSEX events of intro and ingame differ.
-		// If they differ, we really need to setup the proper ingame SYSEX when starting
-		// the game. But the proper place to do it would not be in this function.
-		/*if (_sound->getMusicType() == Sound::kMidiMT32 || _sound->getSfxType() == Sound::kMidiMT32) {
-			_sound->loadSoundFile("LOLSYSEX");
-			_sound->playTrack(0);
-
-			while (_sound->isPlaying() && !shouldQuit())
-				delay(10);
-		}*/
-
 		if (shouldQuit())
 			return;
 
 		_eventList.clear();
+		_sound->setSoundList(0);
 	}
 
 	// We have three sound.dat files, one for the intro, one for the


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