diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-10-25 19:51:32 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-10-25 19:51:32 +0000 |
commit | 1606b23d3b3517aaa708fc2ee6e69cc1e9af6aaf (patch) | |
tree | e478bcfd7e1ab8d1086600e0c0b0558c72202b7b /code | |
parent | 23f67fcd09eb5199fd6e6a1932ea6e0d7326a40e (diff) | |
download | ioquake3-aero-1606b23d3b3517aaa708fc2ee6e69cc1e9af6aaf.tar.gz ioquake3-aero-1606b23d3b3517aaa708fc2ee6e69cc1e9af6aaf.zip |
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
Diffstat (limited to 'code')
-rw-r--r-- | code/client/cl_scrn.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; |