From b96aee6bda286ae78d7821a2dfd21582daa05ba3 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Fri, 4 Sep 2009 13:52:19 +0000 Subject: Removed support for color escapes embedded in text (but still allow colored lines in console). Moved color stuff from q_shared.c into the client code. --- source/cl_parse.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'source/cl_parse.c') diff --git a/source/cl_parse.c b/source/cl_parse.c index 0b21f95..8dd5a16 100644 --- a/source/cl_parse.c +++ b/source/cl_parse.c @@ -891,14 +891,16 @@ static void CL_ParseServerData( void ) { CL_ClientCommand( va( "nextserver %i\n", cl.servercount ) ); } else { // seperate the printfs so the server message can have a color - Con_Printf( "\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36" - "\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36" - "\36\36\36\36\36\36\37\n\n" ); - Con_Printf( S_COLOR_ALT "%s\n\n", levelname ); + Con_Printf( + "\n\n" + "\35\36\36\36\36\36\36\36\36\36\36\36" + "\36\36\36\36\36\36\36\36\36\36\36\36" + "\36\36\36\36\36\36\36\36\36\36\36\37" + "\n\n" ); -#if USE_SYSCON - Sys_Printf( "%s\n", levelname ); -#endif + Com_SetColor( COLOR_ALT ); + Com_Printf( "%s\n", levelname ); + Com_SetColor( COLOR_NONE ); // make sure clientNum is in range if( cl.clientNum < 0 || cl.clientNum >= MAX_CLIENTS ) { @@ -1221,7 +1223,9 @@ static void CL_ParsePrint( void ) { string[len] = '\n'; } - Com_Printf( S_COLOR_ALT "%s", string ); + Com_SetColor( COLOR_ALT ); + Com_Printf( "%s", string ); + Com_SetColor( COLOR_NONE ); Con_SkipNotify( qfalse ); -- cgit v1.2.3