[Scummvm-cvs-logs] CVS: scummvm/scumm debugger.cpp,1.98,1.99

Max Horn fingolfin at users.sourceforge.net
Thu Dec 25 10:01:01 CET 2003


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

Modified Files:
	debugger.cpp 
Log Message:
cleanup

Index: debugger.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/debugger.cpp,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- debugger.cpp	8 Nov 2003 21:59:32 -0000	1.98
+++ debugger.cpp	25 Dec 2003 18:00:30 -0000	1.99
@@ -329,7 +329,7 @@
 bool ScummDebugger::Cmd_PrintScript(int argc, const char **argv) {
 	int i;
 	ScriptSlot *ss = _vm->vm.slot;
-	DebugPrintf("+--------------------------------------+\n");
+	DebugPrintf("+-----------------------------------+\n");
 	DebugPrintf("|# | num|offst|sta|typ|fr|rec|fc|cut|\n");
 	DebugPrintf("+--+----+-----+---+---+--+---+--+---+\n");
 	for (i = 0; i < NUM_SCRIPT_SLOT; i++, ss++) {
@@ -340,7 +340,7 @@
 					ss->freezeCount, ss->cutsceneOverride);
 		}
 	}
-	DebugPrintf("+--------------------------------------+\n");
+	DebugPrintf("+-----------------------------------+\n");
 
 	return true;
 }
@@ -365,32 +365,32 @@
 	value = atoi(argv[3]);
 
 	if (!strcmp(argv[2], "ignoreboxes")) {
-			a->ignoreBoxes = (value > 0);
-			DebugPrintf("Actor[%d].ignoreBoxes = %d\n", actnum, a->ignoreBoxes);
+		a->ignoreBoxes = (value > 0);
+		DebugPrintf("Actor[%d].ignoreBoxes = %d\n", actnum, a->ignoreBoxes);
 	} else if (!strcmp(argv[2], "x")) {
-			a->putActor(value, a->_pos.y, a->room);
-			DebugPrintf("Actor[%d].x = %d\n", actnum, a->_pos.x);
-			_vm->_fullRedraw = 1;
+		a->putActor(value, a->_pos.y, a->room);
+		DebugPrintf("Actor[%d].x = %d\n", actnum, a->_pos.x);
+		_vm->_fullRedraw = 1;
 	} else if (!strcmp(argv[2], "y")) {
-			a->putActor(a->_pos.x, value, a->room);
-			DebugPrintf("Actor[%d].y = %d\n", actnum, a->_pos.y);
-			_vm->_fullRedraw = 1;
+		a->putActor(a->_pos.x, value, a->room);
+		DebugPrintf("Actor[%d].y = %d\n", actnum, a->_pos.y);
+		_vm->_fullRedraw = 1;
 	} else if (!strcmp(argv[2], "elevation")) {
-			a->elevation = value;
-			DebugPrintf("Actor[%d].elevation = %d\n", actnum, a->elevation);
-			_vm->_fullRedraw = 1;
+		a->elevation = value;
+		DebugPrintf("Actor[%d].elevation = %d\n", actnum, a->elevation);
+		_vm->_fullRedraw = 1;
 	} else if (!strcmp(argv[2], "costume")) {
-			if (value >= _vm->res.num[rtCostume])
-					DebugPrintf("Costume not changed as %d exceeds max of %d\n", value, _vm->res.num[rtCostume]);
-			else {
-				a->setActorCostume( value );
-				_vm->_fullRedraw = 1;
-				DebugPrintf("Actor[%d].costume = %d\n", actnum, a->costume);
-			}
+		if (value >= _vm->res.num[rtCostume])
+				DebugPrintf("Costume not changed as %d exceeds max of %d\n", value, _vm->res.num[rtCostume]);
+		else {
+			a->setActorCostume( value );
+			_vm->_fullRedraw = 1;
+			DebugPrintf("Actor[%d].costume = %d\n", actnum, a->costume);
+		}
 	} else if (!strcmp(argv[2], "name")) {
-			DebugPrintf("Name of actor %d: %s\n", actnum, _vm->getObjOrActorName(actnum));
+		DebugPrintf("Name of actor %d: %s\n", actnum, _vm->getObjOrActorName(actnum));
 	} else {
-			DebugPrintf("Unknown actor command '%s'\nUse <ignoreboxes |costume> as command\n", argv[2]);
+		DebugPrintf("Unknown actor command '%s'\nUse <ignoreboxes |costume> as command\n", argv[2]);
 	}
 
 	return true;





More information about the Scummvm-git-logs mailing list