diff options
author | Max Horn | 2009-01-30 04:52:53 +0000 |
---|---|---|
committer | Max Horn | 2009-01-30 04:52:53 +0000 |
commit | 76deee02d6b2638cd04be6cfb50aaf217b6252ee (patch) | |
tree | 2662abc9deec308936693cbf7b95c19b30039b9c /engines/groovie/script.cpp | |
parent | de7c89e38143ccac34e5228d5591a2738f27a661 (diff) | |
download | scummvm-rg350-76deee02d6b2638cd04be6cfb50aaf217b6252ee.tar.gz scummvm-rg350-76deee02d6b2638cd04be6cfb50aaf217b6252ee.tar.bz2 scummvm-rg350-76deee02d6b2638cd04be6cfb50aaf217b6252ee.zip |
Some more 'special debug levels' tweaks
svn-id: r36140
Diffstat (limited to 'engines/groovie/script.cpp')
-rw-r--r-- | engines/groovie/script.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/groovie/script.cpp b/engines/groovie/script.cpp index e1912d2737..4909bb46bc 100644 --- a/engines/groovie/script.cpp +++ b/engines/groovie/script.cpp @@ -42,7 +42,8 @@ void debugScript(int level, bool nl, const char *s, ...) { char buf[STRINGBUFLEN]; va_list va; - if (!Common::isSpecialDebugLevelEnabled(kGroovieDebugScript | kGroovieDebugAll)) + if (!Common::isSpecialDebugLevelEnabled(kGroovieDebugScript) && + !Common::isSpecialDebugLevelEnabled(kGroovieDebugAll)) return; va_start(va, s); @@ -329,7 +330,8 @@ bool Script::hotspot(Common::Rect rect, uint16 address, uint8 cursor) { bool contained = rect.contains(mousepos); // Show hotspots when debugging - if (Common::getEnabledSpecialDebugLevels() & (kGroovieDebugHotspots | kGroovieDebugAll)) { + if (Common::isSpecialDebugLevelEnabled(kGroovieDebugHotspots) || + Common::isSpecialDebugLevelEnabled(kGroovieDebugAll)) { rect.translate(0, -80); _vm->_graphicsMan->_foreground.frameRect(rect, 250); _vm->_system->copyRectToScreen((byte*)_vm->_graphicsMan->_foreground.getBasePtr(0, 0), 640, 0, 80, 640, 320); |