- fix for compilation, is it proper ?

svn-id: r12343
This commit is contained in:
Paweł Kołodziejski 2004-01-12 18:51:15 +00:00
parent cc67c13711
commit e4628fbb07

View file

@ -41,22 +41,22 @@ namespace Scumm {
void CDECL debugC(int channel, const char *s, ...) { void CDECL debugC(int channel, const char *s, ...) {
#ifdef __PALM_OS__ #ifdef __PALM_OS__
char buf[256]; // 1024 is too big overflow the stack char buf[256]; // 1024 is too big overflow the stack
#else #else
char buf[1024]; char buf[1024];
#endif #endif
va_list va; va_list va;
// FIXME: Still spew all debug at -d9, for crashes in startup etc. // FIXME: Still spew all debug at -d9, for crashes in startup etc.
// Add setting from commandline ( / abstract channel interface) // Add setting from commandline ( / abstract channel interface)
if (!(g_scumm->_debugFlags & channel) && (g_debugLevel < 9)) if (!(g_scumm->_debugFlags & channel) && (g_debugLevel < 9))
return; return;
va_start(va, s); va_start(va, s);
vsprintf(buf, s, va); vsprintf(buf, s, va);
va_end(va); va_end(va);
debug(buf); debug(g_debugLevel, buf);
}; };
ScummDebugger::ScummDebugger(ScummEngine *s) ScummDebugger::ScummDebugger(ScummEngine *s)