Bug 4936 - Wrong color for non-ascii symbols in console

This commit is contained in:
Thilo Schulz 2011-03-17 12:53:47 +00:00
parent 76bbd95207
commit d3f8dffe39
1 changed files with 4 additions and 4 deletions

View File

@ -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;