[Scummvm-cvs-logs] CVS: scummvm/scumm debugger.cpp,1.50,1.51

Max Horn fingolfin at users.sourceforge.net
Mon May 26 13:49:04 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv12186

Modified Files:
	debugger.cpp 
Log Message:
scumm vars are 32 bit, not 16

Index: debugger.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/debugger.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- debugger.cpp	26 May 2003 01:48:53 -0000	1.50
+++ debugger.cpp	26 May 2003 20:48:10 -0000	1.51
@@ -270,7 +270,7 @@
 							Debug_Printf("You must access this array as %s[element]\n", param[0]);
 						} else {
 							int element = atoi(chr+1);
-							int16 *var = *(int16 **)_dvars[i].variable;
+							int32 *var = *(int32 **)_dvars[i].variable;
 							if (element > _dvars[i].optional) {
 								Debug_Printf("%s is out of range (array is %d elements big)\n", param[0], _dvars[i].optional);
 							} else {
@@ -600,14 +600,14 @@
 	int i;
 	ObjectData *o;
 	Debug_Printf("Objects in current room\n"); 
-	Debug_Printf("+---------------------------------+\n");
-	Debug_Printf("|num |  x |  y |width|height|state|\n");
-	Debug_Printf("+----+----+----+-----+------+-----+\n");
+	Debug_Printf("+---------------------------------+--+\n");
+	Debug_Printf("|num |  x |  y |width|height|state|fl|\n");
+	Debug_Printf("+----+----+----+-----+------+-----+--+\n");
 	
 	for (i = 1; (i < _s->_numLocalObjects) && (_s->_objs[i].obj_nr != 0) ; i++) {
 		o = &(_s->_objs[i]);
-		Debug_Printf("|%4d|%4d|%4d|%5d|%6d|%5d|\n", 
-				o->obj_nr, o->x_pos, o->y_pos, o->width, o->height, o->state);
+		Debug_Printf("|%4d|%4d|%4d|%5d|%6d|%5d|%2d|\n", 
+				o->obj_nr, o->x_pos, o->y_pos, o->width, o->height, o->state, o->fl_object_index);
 	}
 	Debug_Printf("\n");
 	return true;





More information about the Scummvm-git-logs mailing list