diff options
author | Zack Middleton <zturtleman@gmail.com> | 2012-11-18 22:24:15 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 21:24:49 +0000 |
commit | d76d692561b9508106a1761916d185b7ea198ddd (patch) | |
tree | 225e6b80b30c925a68edc54da8dc3bb824601672 /src | |
parent | e13c9900857bc169e16a9a7549da0694a6f285ef (diff) |
#5799 - Change messagemode text box to display colors like in console input box.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/cl_scrn.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/cl_scrn.c b/src/client/cl_scrn.c index ff8b4cac..34fe3526 100644 --- a/src/client/cl_scrn.c +++ b/src/client/cl_scrn.c @@ -225,14 +225,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; |