From 1606b23d3b3517aaa708fc2ee6e69cc1e9af6aaf Mon Sep 17 00:00:00 2001 From: thilo Date: Sun, 25 Oct 2009 19:51:32 +0000 Subject: Show color codes in full length, patch by Amanieu (#4318) git-svn-id: svn://svn.icculus.org/quake3/trunk@1703 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_scrn.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'code/client') diff --git a/code/client/cl_scrn.c b/code/client/cl_scrn.c index 732913f..568d684 100644 --- a/code/client/cl_scrn.c +++ b/code/client/cl_scrn.c @@ -273,14 +273,16 @@ void SCR_DrawSmallStringExt( int x, int y, const char *string, float *setColor, 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_DrawSmallChar( xx, y, *s ); xx += SMALLCHAR_WIDTH; -- cgit v1.2.3