[Scummvm-cvs-logs] SF.net SVN: scummvm:[45290] scummvm/trunk/engines/sword1/control.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Tue Oct 20 22:15:13 CEST 2009


Revision: 45290
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45290&view=rev
Author:   eriktorbjorn
Date:     2009-10-20 20:15:13 +0000 (Tue, 20 Oct 2009)

Log Message:
-----------
Fixed regression introduced when adding support for looping background sounds.
A.k.a. "I played through the whole game looking for regressions, and missed the
one at the intro cutscene?!"

Modified Paths:
--------------
    scummvm/trunk/engines/sword1/control.cpp

Modified: scummvm/trunk/engines/sword1/control.cpp
===================================================================
--- scummvm/trunk/engines/sword1/control.cpp	2009-10-20 20:12:50 UTC (rev 45289)
+++ scummvm/trunk/engines/sword1/control.cpp	2009-10-20 20:15:13 UTC (rev 45290)
@@ -414,10 +414,9 @@
 	_system->copyRectToScreen(_screenBuf, 640, 0, 0, 640, 480);
 	free(_screenBuf);
 	_mouse->controlPanel(false);
-	if (retVal == CONTROL_NOTHING_DONE) {
-		_music->startMusic(Logic::_scriptVars[CURRENT_MUSIC], 1);
-		_sound->newScreen(Logic::_scriptVars[SCREEN]);
-	}
+	// Can also be used to end the control panel music.
+	_music->startMusic(Logic::_scriptVars[CURRENT_MUSIC], 1);
+	_sound->newScreen(Logic::_scriptVars[SCREEN]);
 	_panelShown = false;
 	return retVal;
 }


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