[Scummvm-cvs-logs] CVS: scummvm/gob inter.cpp,1.16,1.17

Max Horn fingolfin at users.sourceforge.net
Sat Apr 16 16:32:07 CEST 2005


Update of /cvsroot/scummvm/scummvm/gob
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3658

Modified Files:
	inter.cpp 
Log Message:
Hack to get the CD version to play even if no CD track is present

Index: inter.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gob/inter.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- inter.cpp	15 Apr 2005 00:07:14 -0000	1.16
+++ inter.cpp	16 Apr 2005 23:31:02 -0000	1.17
@@ -420,7 +420,12 @@
 
 	case 33:
 		// Used in gob1 CD
-		WRITE_VAR(5, cd_getTrackPos());
+		{
+		int pos = cd_getTrackPos();
+		if (pos == -1)
+			pos = 32767;
+		WRITE_VAR(5, pos);
+		}
 		break;
 
 	case 34:





More information about the Scummvm-git-logs mailing list