summaryrefslogtreecommitdiff
path: root/source/cl_parse.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2009-09-04 13:52:19 +0000
committerAndrey Nazarov <skuller@skuller.net>2009-09-04 13:52:19 +0000
commitb96aee6bda286ae78d7821a2dfd21582daa05ba3 (patch)
treef56f9ceeb4539cd300e821e407d30f7f8e2ce259 /source/cl_parse.c
parent12eaed2125875a436269f79481df251b598aefb5 (diff)
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.
Diffstat (limited to 'source/cl_parse.c')
-rw-r--r--source/cl_parse.c20
1 files changed, 12 insertions, 8 deletions
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 );