[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.cpp,1.74,1.75

Max Horn fingolfin at users.sourceforge.net
Wed Jul 23 02:42:47 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1:/tmp/cvs-serv27720

Modified Files:
	sdl-common.cpp 
Log Message:
reset some CD related vars when AudioCD is opened

Index: sdl-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.cpp,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- sdl-common.cpp	23 Jul 2003 05:18:47 -0000	1.74
+++ sdl-common.cpp	23 Jul 2003 09:41:21 -0000	1.75
@@ -915,6 +915,10 @@
 			/* Did if open? Check if _cdrom is NULL */
 			if (!_cdrom) {
 				warning("Couldn't open drive: %s\n", SDL_GetError());
+			} else {
+				cd_num_loops = 0;
+				cd_stop_time = 0;
+				cd_end_time = 0;
 			}
 		}
 		break;
@@ -1098,7 +1102,7 @@
 		return;
 	
 	if (duration > 0)
-		duration +=5;
+		duration += 5;
 
 	cd_track = track;
 	cd_num_loops = num_loops;





More information about the Scummvm-git-logs mailing list