[quake3-commits] r1935 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Mar 17 08:53:48 EDT 2011


Author: thilo
Date: 2011-03-17 08:53:47 -0400 (Thu, 17 Mar 2011)
New Revision: 1935

Modified:
   trunk/code/client/cl_console.c
Log:
Bug 4936 - Wrong color for non-ascii symbols in console


Modified: trunk/code/client/cl_console.c
===================================================================
--- trunk/code/client/cl_console.c	2011-03-17 12:40:39 UTC (rev 1934)
+++ trunk/code/client/cl_console.c	2011-03-17 12:53:47 UTC (rev 1935)
@@ -380,9 +380,9 @@
 ================
 */
 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 @@
 
 	color = ColorIndex(COLOR_WHITE);
 
-	while ( (c = *txt) != 0 ) {
+	while ( (c = *((unsigned char *) txt)) != 0 ) {
 		if ( Q_IsColorString( txt ) ) {
 			color = ColorIndex( *(txt+1) );
 			txt += 2;



More information about the quake3-commits mailing list