diff options
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); |