aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie
diff options
context:
space:
mode:
authorMax Horn2009-01-30 04:42:30 +0000
committerMax Horn2009-01-30 04:42:30 +0000
commitde7c89e38143ccac34e5228d5591a2738f27a661 (patch)
tree5f383e7ab19e9aafa14477a8e28dc384491b6297 /engines/groovie
parent9861da62f049fcd3436df38ff06d8e8839dbfdab (diff)
downloadscummvm-rg350-de7c89e38143ccac34e5228d5591a2738f27a661.tar.gz
scummvm-rg350-de7c89e38143ccac34e5228d5591a2738f27a661.tar.bz2
scummvm-rg350-de7c89e38143ccac34e5228d5591a2738f27a661.zip
Some work on the 'special debug levels' aka 'engine debug levels' code
svn-id: r36139
Diffstat (limited to 'engines/groovie')
-rw-r--r--engines/groovie/script.cpp7
-rw-r--r--engines/groovie/vdx.cpp3
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--) {