diff options
author | Max Horn | 2010-04-27 21:40:52 +0000 |
---|---|---|
committer | Max Horn | 2010-04-27 21:40:52 +0000 |
commit | 460d69e8855f849e2200c49b198936b1201e0c91 (patch) | |
tree | 31bfcaf8c2603d01c9d971fb3b40390e0798ec02 /engines/sci/engine | |
parent | 445dccd59bc77e760e649bae982d78f0c3ca6b04 (diff) | |
download | scummvm-rg350-460d69e8855f849e2200c49b198936b1201e0c91.tar.gz scummvm-rg350-460d69e8855f849e2200c49b198936b1201e0c91.tar.bz2 scummvm-rg350-460d69e8855f849e2200c49b198936b1201e0c91.zip |
COMMON: Move DebugChannel stuff into a new DebugMan singleton
svn-id: r48821
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kpathing.cpp | 8 | ||||
-rw-r--r-- | engines/sci/engine/vm.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp index e2c9ef2444..9746bbada1 100644 --- a/engines/sci/engine/kpathing.cpp +++ b/engines/sci/engine/kpathing.cpp @@ -1351,7 +1351,7 @@ static reg_t output_path(PathfindingState *p, EngineState *s) { // Sentinel writePoint(arrayRef, offset, Common::Point(POLY_LAST_POINT, POLY_LAST_POINT)); - if (Common::isDebugChannelEnabled(kDebugLevelAvoidPath)) { + if (DebugMan.isDebugChannelEnabled(kDebugLevelAvoidPath)) { debug("\nReturning path:"); for (int i = 0; i < offset; i++) { Common::Point pt = read_point(s->_segMan, output, i); @@ -1407,7 +1407,7 @@ reg_t kAvoidPath(EngineState *s, int argc, reg_t *argv) { opt = argv[6].toUint16(); } - if (Common::isDebugChannelEnabled(kDebugLevelAvoidPath)) { + if (DebugMan.isDebugChannelEnabled(kDebugLevelAvoidPath)) { debug("[avoidpath] Pathfinding input:"); draw_point(s, start, 1, width, height); draw_point(s, end, 0, width, height); @@ -1578,7 +1578,7 @@ reg_t kIntersections(EngineState *s, int argc, reg_t *argv) { int32 pDestX = inpBuf[curIndex].toSint16() & 0x1ff; int32 pDestY = inpBuf[curIndex + 1].toSint16(); - if (Common::isDebugChannelEnabled(kDebugLevelAvoidPath)) { + if (DebugMan.isDebugChannelEnabled(kDebugLevelAvoidPath)) { draw_line(s, Common::Point(pSourceX, pSourceY), Common::Point(pDestX, pDestY), 2, 320, 190); debugN(-1, " (%i, %i)[%i]", pDestX, pDestY, curIndex); @@ -1657,7 +1657,7 @@ reg_t kIntersections(EngineState *s, int argc, reg_t *argv) { if (curIndex == doneIndex) { // End of polyline/polygon reached - if (Common::isDebugChannelEnabled(kDebugLevelAvoidPath)) { + if (DebugMan.isDebugChannelEnabled(kDebugLevelAvoidPath)) { debug(";"); debugN(-1, "Found %i intersections", outCount); diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index 6934a6f481..d32b2babc5 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -1680,7 +1680,7 @@ static EngineState *_game_run(EngineState *&s) { EngineState *successor = NULL; int game_is_finished = 0; - if (Common::isDebugChannelEnabled(kDebugLevelOnStartup)) + if (DebugMan.isDebugChannelEnabled(kDebugLevelOnStartup)) g_sci->getSciDebugger()->attach(); do { |