Use ColorIndexForNumber in Con_DrawSolidConsole

This commit is contained in:
Zack Middleton 2014-08-29 01:55:47 -05:00
parent e742952db8
commit de3062623a

View file

@ -717,8 +717,8 @@ void Con_DrawSolidConsole( float frac ) {
continue;
}
if ( ( (text[x]>>8)&7 ) != currentColor ) {
currentColor = (text[x]>>8)&7;
if ( ColorIndexForNumber( text[x]>>8 ) != currentColor ) {
currentColor = ColorIndexForNumber( text[x]>>8 );
re.SetColor( g_color_table[currentColor] );
}
SCR_DrawSmallChar( con.xadjust + (x+1)*SMALLCHAR_WIDTH, y, text[x] & 0xff );