diff options
author | Andrey Nazarov <skuller@skuller.net> | 2010-11-06 00:11:02 +0300 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2010-11-11 16:54:28 +0300 |
commit | 92a386a62465ecfce30c32aea3eec0e7395d6ea2 (patch) | |
tree | a30be6d4d3ec811e6b9ea8f7b00000e5dddf5bc0 /src/common.c | |
parent | 41681b1193cbb89bc926fa4d9a5b205ef20aafb9 (diff) |
Add PRINT_NOTICE constant, kill remaining S_COLOR_ macro users.
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common.c b/src/common.c index c8b1b10..9757cf3 100644 --- a/src/common.c +++ b/src/common.c @@ -256,6 +256,7 @@ static void logfile_write( print_type_t type, const char *string ) { case PRINT_DEVELOPER: *p = 'D'; break; case PRINT_WARNING: *p = 'W'; break; case PRINT_ERROR: *p = 'E'; break; + case PRINT_NOTICE: *p = 'N'; break; default: *p = 'A'; break; } } @@ -367,6 +368,9 @@ void Com_LPrintf( print_type_t type, const char *fmt, ... ) { case PRINT_ERROR: Com_SetColor( COLOR_RED ); break; + case PRINT_NOTICE: + Com_SetColor( COLOR_CYAN ); + break; default: break; } @@ -1830,9 +1834,7 @@ void Qcommon_Init( int argc, char **argv ) { #endif // print version - Com_SetColor( COLOR_CYAN ); - Com_Printf( "%s\n", version ); - Com_SetColor( COLOR_NONE ); + Com_LPrintf( PRINT_NOTICE, "%s\n", version ); FS_Init(); @@ -1916,9 +1918,7 @@ void Qcommon_Init( int argc, char **argv ) { } Com_Printf( "====== " APPLICATION " initialized ======\n\n" ); - Com_SetColor( COLOR_CYAN ); - Com_Printf( APPLICATION " " VERSION ", " __DATE__ "\n" ); - Com_SetColor( COLOR_NONE ); + Com_LPrintf( PRINT_NOTICE, APPLICATION " " VERSION ", " __DATE__ "\n" ); Com_Printf( "http://skuller.net/q2pro/\n\n" ); time( &com_startTime ); |