summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2010-12-05 04:14:14 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:43 +0000
commit4c706760abee290aa50e67e85881918cfbdf7b06 (patch)
tree1091d70c3b1c2134916a9e8980deaee8e6b8e977 /src/sys
parent537a0684057830ae9c96c921c2a0237f14c951be (diff)
* Fix black in names causing wonky colors in the system console when followed by other colors
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/sys_main.c4
1 files changed, 2 insertions, 2 deletions
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;