[Scummvm-cvs-logs] CVS: scummvm script_v1.cpp,1.103,1.104

James Brown ender at users.sourceforge.net
Fri May 10 23:52:02 CEST 2002


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

Modified Files:
	script_v1.cpp 
Log Message:
Fix loom sound when using COMPRESSED_SOUND_FILE.



Index: script_v1.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/script_v1.cpp,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- script_v1.cpp	10 May 2002 16:14:52 -0000	1.103
+++ script_v1.cpp	11 May 2002 06:51:11 -0000	1.104
@@ -2715,10 +2715,9 @@
 				delay = (int)((getVarOrDirectWord(0x40) & 0xffff) * 7.5);
 				if (_gameId == GID_LOOM256) {					
 #ifdef COMPRESSED_SOUND_FILE
-					playMP3CDTrack(1, 0, offset, delay);
-#else
-					_system->play_cdrom(1, 0, offset, delay);
+					if (playMP3CDTrack(1, 0, offset, delay) == -1)
 #endif
+					_system->play_cdrom(1, 0, offset, delay);
 				}
 				else
 					warning("parseString: 8");





More information about the Scummvm-git-logs mailing list