From 98f04d39a6b0b5ebd684eabd39edef03f613bb7e Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 18 Nov 2012 22:24:15 +0000 Subject: [PATCH] #5799 - Change messagemode text box to display colors like in console input box. --- code/client/cl_scrn.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/client/cl_scrn.c b/code/client/cl_scrn.c index 42fa62da..095dc8ad 100644 --- a/code/client/cl_scrn.c +++ b/code/client/cl_scrn.c @@ -224,14 +224,16 @@ void SCR_DrawStringExt( int x, int y, float size, const char *string, float *set 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;