[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.12,1.13

Max Horn fingolfin at users.sourceforge.net
Sun Oct 20 11:13:01 CEST 2002


Update of /cvsroot/scummvm/scummvm/simon
In directory usw-pr-cvs1:/tmp/cvs-serv9168

Modified Files:
	simon.cpp 
Log Message:
maybe a fix for bug #595813, SIMON: fails to initialise midi

Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- simon.cpp	10 Oct 2002 18:51:36 -0000	1.12
+++ simon.cpp	20 Oct 2002 18:12:11 -0000	1.13
@@ -4880,7 +4880,10 @@
 
 	/* FIXME: not properly implemented */
 	if (_game & GAME_WIN) {
-		_game_file->seek(_game_offsets_ptr[gss->MUSIC_INDEX_BASE + music] - 1, SEEK_SET);
+		int32 offset = _game_offsets_ptr[gss->MUSIC_INDEX_BASE + music];
+		if (_game & GAME_SIMON2)
+			offset--;
+		_game_file->seek(offset, SEEK_SET);
 		File *f = _game_file;
 		midi.read_all_songs(f);
 	} else {





More information about the Scummvm-git-logs mailing list