[Scummvm-cvs-logs] CVS: scummvm/scumm script_v7he.cpp,2.72,2.73

Travis Howell kirben at users.sourceforge.net
Sun Sep 12 02:27:02 CEST 2004


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

Modified Files:
	script_v7he.cpp 
Log Message:

Add debug


Index: script_v7he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v7he.cpp,v
retrieving revision 2.72
retrieving revision 2.73
diff -u -d -r2.72 -r2.73
--- script_v7he.cpp	12 Sep 2004 02:25:12 -0000	2.72
+++ script_v7he.cpp	12 Sep 2004 09:26:48 -0000	2.73
@@ -1011,39 +1011,42 @@
 }
 
 void ScummEngine_v7he::o7_unknownFB() {
+	int a, b, c, d, e, f, g, h, i;
 	byte subOp = fetchScriptByte();
 
 	switch (subOp) {
 	case 246:
-		pop();
-		pop();
-		pop();
-		pop();
-		pop();
-		pop();
-		pop();
-		pop();
-		pop();
+		a = pop();
+		b = pop();
+		c = pop();
+		d = pop();
+		e = pop();
+		f = pop();
+		g = pop();
+		h = pop();
+		i = pop();
+		debug(1,"o7_unknownFB case 245 stub (%d, %d, %d, %d, %d, %d, %d, %d, %d)", a, b, c, d, e, g, h, i);
 		break;
 	case 247:
-		pop();
-		pop();
+		a = pop();
+		b = pop();
+		debug(1,"o7_unknownFB case 247 stub (%d, %d)", a, b);
 		break;
 	case 248:
-		pop();
-		pop();
-		pop();
-		pop();
-		pop();
-		pop();
-		pop();
-		pop();
-		pop();
+		a = pop();
+		b = pop();
+		c = pop();
+		d = pop();
+		e = pop();
+		f = pop();
+		g = pop();
+		h = pop();
+		i = pop();
+		debug(1,"o7_unknownFB case 248 stub (%d, %d, %d, %d, %d, %d, %d, %d, %d)", a, b, c, d, e, g, h, i);
 		break;
 	default:
 		error("o7_unknownFB: default type %d", subOp);
 	}
-	debug(1,"o7_unknownFB stub");
 }
 
 void ScummEngine_v7he::o7_unknownFC() {
@@ -1052,7 +1055,8 @@
 	int y = pop();
 	int x = pop();
 
-	push(0);
+	int r = findObject(x, y);
+	push(r);
 	debug(1,"o7_unknownFC (x %d, y %d) stub", x, y);
 }
 





More information about the Scummvm-git-logs mailing list