[Scummvm-cvs-logs] SF.net SVN: scummvm: [25674] scummvm/trunk/engines/parallaction
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Sun Feb 18 10:34:02 CET 2007
Revision: 25674
http://scummvm.svn.sourceforge.net/scummvm/?rev=25674&view=rev
Author: peres001
Date: 2007-02-18 01:33:53 -0800 (Sun, 18 Feb 2007)
Log Message:
-----------
new special debug levels
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/animation.cpp
scummvm/trunk/engines/parallaction/parallaction.cpp
Modified: scummvm/trunk/engines/parallaction/animation.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/animation.cpp 2007-02-18 09:29:54 UTC (rev 25673)
+++ scummvm/trunk/engines/parallaction/animation.cpp 2007-02-18 09:33:53 UTC (rev 25674)
@@ -226,7 +226,7 @@
void jobEraseAnimations(void *arg_0, Job *j) {
- debugC(3, kDebugLocation, "jobEraseAnimations");
+ debugC(3, kDebugJobs, "jobEraseAnimations");
Animation *a = (Animation*)_animations._next;
@@ -522,7 +522,7 @@
void jobRunScripts(void *parm, Job *j) {
- debugC(3, kDebugLocation, "jobRunScripts");
+ debugC(3, kDebugJobs, "jobRunScripts");
static uint16 modCounter = 0;
@@ -541,7 +541,7 @@
while ((inst->_index != INST_SHOW) && (a->_zone._flags & kFlagsActing)) {
-// printf("Animation: %s, instruction: %s\n", a->_zone._name, inst->_index == INST_END ? "end" : _instructionNames[inst->_index - 1]);
+ debugC(1, kDebugJobs, "Animation: %s, instruction: %s", a->_zone._label._text, inst->_index == INST_END ? "end" : _instructionNames[inst->_index - 1]);
switch (inst->_index) {
case INST_ENDLOOP: // endloop
Modified: scummvm/trunk/engines/parallaction/parallaction.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction.cpp 2007-02-18 09:29:54 UTC (rev 25673)
+++ scummvm/trunk/engines/parallaction/parallaction.cpp 2007-02-18 09:33:53 UTC (rev 25674)
@@ -185,6 +185,9 @@
Common::addSpecialDebugLevel(kDebugDisk, "disk", "Disk debug level");
Common::addSpecialDebugLevel(kDebugWalk, "walk", "Walk debug level");
Common::addSpecialDebugLevel(kDebugGraphics, "gfx", "Gfx debug level");
+ Common::addSpecialDebugLevel(kDebugJobs, "jobs", "Jobs debug level");
+ Common::addSpecialDebugLevel(kDebugInput, "input", "Input debug level");
+
}
@@ -486,7 +489,7 @@
switch (data->_event) {
case kEvEnterZone:
- debugC(2, kDebugLocation, "processInput: kEvEnterZone");
+ debugC(2, kDebugInput, "processInput: kEvEnterZone");
_graphics->_labelPosition[1]._x = -1000;
_graphics->_labelPosition[1]._y = -1000;
_graphics->_labelPosition[0]._x = -1000;
@@ -496,14 +499,14 @@
break;
case kEvExitZone:
- debugC(2, kDebugLocation, "processInput: kEvExitZone");
+ debugC(2, kDebugInput, "processInput: kEvExitZone");
removeJob(_jDrawLabel);
addJob(&jobWaitRemoveJob, _jEraseLabel, kPriority15);
_jDrawLabel = NULL;
break;
case kEvAction:
- debugC(2, kDebugLocation, "processInput: kEvAction");
+ debugC(2, kDebugInput, "processInput: kEvAction");
_procCurrentHoverItem = -1;
_hoverZone = NULL;
pauseJobs();
@@ -547,7 +550,7 @@
break;
case kEvWalk:
- debugC(2, kDebugLocation, "processInput: kEvWalk");
+ debugC(2, kDebugInput, "processInput: kEvWalk");
_hoverZone = NULL;
changeCursor(kCursorArrow);
if (_yourself._zone._flags & kFlagsRemove) break;
@@ -772,7 +775,7 @@
if (index == kCursorArrow) { // standard mouse pointer
- debugC(1, kDebugLocation, "changeCursor(%i), label: %p", index, (const void*)_jDrawLabel);
+ debugC(1, kDebugInput, "changeCursor(%i), label: %p", index, (const void*)_jDrawLabel);
if (_jDrawLabel != NULL) {
removeJob(_jDrawLabel);
@@ -965,7 +968,7 @@
Job *j = (Job*)_jobs._node._next;
while (j) {
- debugC(3, kDebugLocation, "runJobs: %i", j->_tag);
+ debugC(3, kDebugJobs, "runJobs: %i", j->_tag);
(*j->_fn)(j->_parm, j);
Job *v4 = (Job*)j->_node._next;
@@ -987,7 +990,7 @@
static uint16 count = 0;
- debugC(3, kDebugLocation, "jobWaitRemoveJob: count = %i", count);
+ debugC(3, kDebugJobs, "jobWaitRemoveJob: count = %i", count);
_engineFlags |= kEngineMouse;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list