[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.207,1.208

Jamieson Christian jamieson630 at users.sourceforge.net
Fri May 23 20:47:05 CEST 2003


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv516/scummvm/simon

Modified Files:
	simon.cpp 
Log Message:
Hack to prevent bad music looping at end of simon1win

Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.207
retrieving revision 1.208
diff -u -d -r1.207 -r1.208
--- simon.cpp	24 May 2003 03:10:14 -0000	1.207
+++ simon.cpp	24 May 2003 03:26:12 -0000	1.208
@@ -5310,6 +5310,14 @@
 			midi.setLoop (true); // Must do this BEFORE loading music. (GMF may have its own override.)
 
 			if (_game & GF_WIN) {	
+				// FIXME: The very last music resource, a cymbal crash for when the
+				// two golems... er... gargoyles crash into each other, should NOT
+				// be looped like the other music tracks. In simon1dos the GMF
+				// resource includes a loop override that acomplishes this, but
+				// there seems to be nothing for this in the SMF resources.
+				if (music == 35)
+					midi.setLoop (false);
+
 				_game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music], SEEK_SET);
 				midi.loadMultipleSMF (_game_file);
 			} else if (_game & GF_TALKIE) {	





More information about the Scummvm-git-logs mailing list