diff options
author | Zack Middleton <zturtleman@gmail.com> | 2014-08-29 01:55:47 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2015-03-17 11:38:06 +0000 |
commit | 3e90490cb5972e2bce7077dde1b795d2c23021c6 (patch) | |
tree | 027c4c16f5e3c8b06faa560dc1a2c918a8c10427 | |
parent | c09c6055cdd16affd85564d0d8184e2cd8d35d25 (diff) |
Use ColorIndexForNumber in Con_DrawSolidConsole
-rw-r--r-- | src/client/cl_console.c | 4 |
1 files 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 ); |