From 4c706760abee290aa50e67e85881918cfbdf7b06 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sun, 5 Dec 2010 04:14:14 +0000 Subject: * Fix black in names causing wonky colors in the system console when followed by other colors --- src/sys/sys_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sys') diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c index f1aa6fa8..460e8a22 100644 --- a/src/sys/sys_main.c +++ b/src/sys/sys_main.c @@ -241,8 +241,8 @@ void Sys_AnsiColorPrint( const char *msg ) } else { - // Print the color code - Com_sprintf( buffer, sizeof( buffer ), "\033[%dm", + // Print the color code (reset first to clear potential inverse (black)) + Com_sprintf( buffer, sizeof( buffer ), "\033[0m\033[%dm", q3ToAnsi[ ColorIndex( *( msg + 1 ) ) ] ); fputs( buffer, stderr ); msg += 2; -- cgit