From d3f8dffe39a0c495582c646684ebd63d528fddb3 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Thu, 17 Mar 2011 12:53:47 +0000 Subject: [PATCH] Bug 4936 - Wrong color for non-ascii symbols in console --- code/client/cl_console.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/client/cl_console.c b/code/client/cl_console.c index 7740db30..196b5911 100644 --- a/code/client/cl_console.c +++ b/code/client/cl_console.c @@ -380,9 +380,9 @@ If no console is visible, the text will appear at the top of the game window ================ */ void CL_ConsolePrint( char *txt ) { - int y; - int c, l; - int color; + int y, l; + unsigned char c; + unsigned short color; qboolean skipnotify = qfalse; // NERVE - SMF int prev; // NERVE - SMF @@ -410,7 +410,7 @@ void CL_ConsolePrint( char *txt ) { color = ColorIndex(COLOR_WHITE); - while ( (c = *txt) != 0 ) { + while ( (c = *((unsigned char *) txt)) != 0 ) { if ( Q_IsColorString( txt ) ) { color = ColorIndex( *(txt+1) ); txt += 2;