Show color codes in full length, patch by Amanieu (#4318)

This commit is contained in:
Thilo Schulz 2009-10-25 19:51:32 +00:00
parent 2fc4023e0b
commit 0bdf52e2fb

View file

@ -273,15 +273,17 @@ 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 );
}
if ( !noColorEscape ) {
s += 2;
continue;
}
}
SCR_DrawSmallChar( xx, y, *s );
xx += SMALLCHAR_WIDTH;
s++;