[Scummvm-cvs-logs] CVS: scummvm/queen command.cpp,1.19,1.20

Gregory Montoir cyx at users.sourceforge.net
Sun Nov 16 03:19:21 CET 2003


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

Modified Files:
	command.cpp 
Log Message:
fix song playafter/playbefore type issue

Index: command.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/command.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- command.cpp	16 Nov 2003 10:47:31 -0000	1.19
+++ command.cpp	16 Nov 2003 11:17:35 -0000	1.20
@@ -423,7 +423,7 @@
 	}
 
 	// only play song if it's a PLAY AFTER type
-	if (com->song > 0) {
+	if (com->song < 0) {
 		_sound->playSong(com->song);
 	}
 
@@ -1046,7 +1046,7 @@
 
 			// play music if it exists... (or SFX for open/close door)
 			if (song != 0) {
-				_sound->playSong(abs(song));
+				_sound->playSong(ABS(song));
 			}
 
 			if (objData->entryObj != 0) {
@@ -1068,7 +1068,7 @@
 
 			// play music if it exists... (or SFX for open/close door)
 			if (song != 0) {
-				_sound->playSong(abs(song));
+				_sound->playSong(ABS(song));
 			}
 
 			if (objData->entryObj != 0) {





More information about the Scummvm-git-logs mailing list