Fix last commits by adding LOG_WARNING
Patch by Christian Ohm: 028 - Add LOG_WARNING git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@882 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
22ac91e2fe
commit
746a25ba13
|
@ -28,8 +28,22 @@ static BOOL enabled_debug_parts[LOG_LAST];
|
|||
|
||||
/* This list _must_ match the enum in debug.h! */
|
||||
static const char *code_part_names[] = {
|
||||
"all", "main", "sound", "video", "wz", "3d", "texture",
|
||||
"net", "memory", "error", "never", "script", "movement", "attack", "last"
|
||||
"all",
|
||||
"main",
|
||||
"sound",
|
||||
"video",
|
||||
"wz",
|
||||
"3d",
|
||||
"texture",
|
||||
"net",
|
||||
"memory",
|
||||
"warning",
|
||||
"error",
|
||||
"never",
|
||||
"script",
|
||||
"movement",
|
||||
"attack",
|
||||
"last"
|
||||
};
|
||||
|
||||
/**********************************************************************
|
||||
|
@ -191,6 +205,9 @@ void debug_init(void)
|
|||
}
|
||||
memset( enabled_debug_parts, FALSE, sizeof(enabled_debug_parts) );
|
||||
enabled_debug_parts[LOG_ERROR] = TRUE;
|
||||
#ifdef DEBUG
|
||||
enabled_debug_parts[LOG_WARNING] = TRUE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -80,6 +80,7 @@ typedef enum {
|
|||
LOG_TEXTURE,
|
||||
LOG_NET,
|
||||
LOG_MEMORY,
|
||||
LOG_WARNING, /* special; on in debug mode */
|
||||
LOG_ERROR, /* special; on by default */
|
||||
LOG_NEVER, /* if too verbose for anything but dedicated debugging... */
|
||||
LOG_SCRIPT,
|
||||
|
|
Loading…
Reference in New Issue