From 3e90490cb5972e2bce7077dde1b795d2c23021c6 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Fri, 29 Aug 2014 01:55:47 -0500 Subject: Use ColorIndexForNumber in Con_DrawSolidConsole --- src/client/cl_console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/cl_console.c b/src/client/cl_console.c index 997fa660..01e71ce0 100644 --- a/src/client/cl_console.c +++ b/src/client/cl_console.c @@ -549,8 +549,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 ); -- cgit