mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-13 00:24:10 +00:00
Use ColorIndexForNumber in Con_DrawSolidConsole
This commit is contained in:
parent
e742952db8
commit
de3062623a
1 changed files with 2 additions and 2 deletions
|
@ -717,8 +717,8 @@ void Con_DrawSolidConsole( float frac ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ( (text[x]>>8)&7 ) != currentColor ) {
|
if ( ColorIndexForNumber( text[x]>>8 ) != currentColor ) {
|
||||||
currentColor = (text[x]>>8)&7;
|
currentColor = ColorIndexForNumber( text[x]>>8 );
|
||||||
re.SetColor( g_color_table[currentColor] );
|
re.SetColor( g_color_table[currentColor] );
|
||||||
}
|
}
|
||||||
SCR_DrawSmallChar( con.xadjust + (x+1)*SMALLCHAR_WIDTH, y, text[x] & 0xff );
|
SCR_DrawSmallChar( con.xadjust + (x+1)*SMALLCHAR_WIDTH, y, text[x] & 0xff );
|
||||||
|
|
Loading…
Reference in a new issue