From de3062623a5f04ca1c84d17d32774a4b583e02de Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Fri, 29 Aug 2014 01:55:47 -0500 Subject: [PATCH] Use ColorIndexForNumber in Con_DrawSolidConsole --- code/client/cl_console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/client/cl_console.c b/code/client/cl_console.c index bd6b0ec2..7d806e94 100644 --- a/code/client/cl_console.c +++ b/code/client/cl_console.c @@ -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 );