[Scummvm-cvs-logs] CVS: scummvm/queen sound.cpp,1.17,1.18

Travis Howell kirben at users.sourceforge.net
Sun Dec 14 01:45:03 CET 2003


Update of /cvsroot/scummvm/scummvm/queen
In directory sc8-pr-cvs1:/tmp/cvs-serv18929/queen

Modified Files:
	sound.cpp 
Log Message:

Fixproblem of fotaq attempting to play sfx as music, when sfx are disabled.


Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/sound.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- sound.cpp	14 Dec 2003 00:33:21 -0000	1.17
+++ sound.cpp	14 Dec 2003 03:36:47 -0000	1.18
@@ -143,8 +143,9 @@
 	
 	int16 newTune = _song[songNum - 1].tuneList[0];
 
-	if (_tune[newTune - 1].sfx[0] && sfxOn()) {
-		sfxPlay(_sfxName[_tune[newTune - 1].sfx[0] - 1]);
+	if (_tune[newTune - 1].sfx[0]) {
+		if (sfxOn())
+			sfxPlay(_sfxName[_tune[newTune - 1].sfx[0] - 1]);
 		return;
 	}
 





More information about the Scummvm-git-logs mailing list