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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Nov 18 17:24:15 EST 2012


Author: ztm
Date: 2012-11-18 17:24:15 -0500 (Sun, 18 Nov 2012)
New Revision: 2358

Modified:
   trunk/code/client/cl_scrn.c
Log:
#5799 - Change messagemode text box to display colors like in console input box.

Modified: trunk/code/client/cl_scrn.c
===================================================================
--- trunk/code/client/cl_scrn.c	2012-11-18 22:12:30 UTC (rev 2357)
+++ trunk/code/client/cl_scrn.c	2012-11-18 22:24:15 UTC (rev 2358)
@@ -224,14 +224,16 @@
 	xx = x;
 	re.SetColor( setColor );
 	while ( *s ) {
-		if ( !noColorEscape && Q_IsColorString( s ) ) {
+		if ( Q_IsColorString( s ) ) {
 			if ( !forceColor ) {
 				Com_Memcpy( color, g_color_table[ColorIndex(*(s+1))], sizeof( color ) );
 				color[3] = setColor[3];
 				re.SetColor( color );
 			}
-			s += 2;
-			continue;
+			if ( !noColorEscape ) {
+				s += 2;
+				continue;
+			}
 		}
 		SCR_DrawChar( xx, y, size, *s );
 		xx += size;



More information about the quake3-commits mailing list