diff options
Diffstat (limited to 'engines/groovie')
-rw-r--r-- | engines/groovie/script.cpp | 7 | ||||
-rw-r--r-- | engines/groovie/vdx.cpp | 3 |
2 files changed, 3 insertions, 7 deletions
diff --git a/engines/groovie/script.cpp b/engines/groovie/script.cpp index a8feda0805..e1912d2737 100644 --- a/engines/groovie/script.cpp +++ b/engines/groovie/script.cpp @@ -42,11 +42,8 @@ void debugScript(int level, bool nl, const char *s, ...) { char buf[STRINGBUFLEN]; va_list va; - uint32 engine_level = kGroovieDebugScript | kGroovieDebugAll; - - if (gDebugLevel != 11) - if (!(Common::getEnabledSpecialDebugLevels() & engine_level)) - return; + if (!Common::isSpecialDebugLevelEnabled(kGroovieDebugScript | kGroovieDebugAll)) + return; va_start(va, s); vsnprintf(buf, STRINGBUFLEN, s, va); diff --git a/engines/groovie/vdx.cpp b/engines/groovie/vdx.cpp index 247d2c885e..aa5196c5c9 100644 --- a/engines/groovie/vdx.cpp +++ b/engines/groovie/vdx.cpp @@ -49,8 +49,7 @@ void VDXPlayer::setOrigin(int16 x, int16 y) { } uint16 VDXPlayer::loadInternal() { - uint32 engine_level = kGroovieDebugVideo | kGroovieDebugAll; - if ((gDebugLevel == 11) || (Common::getEnabledSpecialDebugLevels() & engine_level)) { + if (Common::isSpecialDebugLevelEnabled(kGroovieDebugVideo | kGroovieDebugAll)) { int8 i; debugN(1, "Groovie::VDX: New VDX: bitflags are "); for (i = 15; i >= 0; i--) { |