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;