aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-01-12 18:51:15 +0000
committerPaweł Kołodziejski2004-01-12 18:51:15 +0000
commite4628fbb07c034362d4e46f9939bb49e8fb74dbb (patch)
treedcb4553174478f5d448c403cad09f743655ad3b5
parentcc67c137114c299e444ba597a4cc0143da8d8bc1 (diff)
downloadscummvm-rg350-e4628fbb07c034362d4e46f9939bb49e8fb74dbb.tar.gz
scummvm-rg350-e4628fbb07c034362d4e46f9939bb49e8fb74dbb.tar.bz2
scummvm-rg350-e4628fbb07c034362d4e46f9939bb49e8fb74dbb.zip
- indent
- fix for compilation, is it proper ? svn-id: r12343
-rw-r--r--scumm/debugger.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp
index d25ddb98e9..17fffe8f84 100644
--- a/scumm/debugger.cpp
+++ b/scumm/debugger.cpp
@@ -41,22 +41,22 @@ namespace Scumm {
void CDECL debugC(int channel, const char *s, ...) {
#ifdef __PALM_OS__
- char buf[256]; // 1024 is too big overflow the stack
+ char buf[256]; // 1024 is too big overflow the stack
#else
- char buf[1024];
+ char buf[1024];
#endif
- va_list va;
+ va_list va;
// FIXME: Still spew all debug at -d9, for crashes in startup etc.
// Add setting from commandline ( / abstract channel interface)
- if (!(g_scumm->_debugFlags & channel) && (g_debugLevel < 9))
- return;
+ if (!(g_scumm->_debugFlags & channel) && (g_debugLevel < 9))
+ return;
- va_start(va, s);
- vsprintf(buf, s, va);
- va_end(va);
+ va_start(va, s);
+ vsprintf(buf, s, va);
+ va_end(va);
- debug(buf);
+ debug(g_debugLevel, buf);
};
ScummDebugger::ScummDebugger(ScummEngine *s)