From 0d6e663d608f2e60d21e0ccbf8d0f0f99fe795bf Mon Sep 17 00:00:00 2001 From: TimeServ Date: Sat, 29 Jul 2006 21:09:43 +0000 Subject: [PATCH] fix for sys_colorconsole on windows git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2366 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_sys_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/server/sv_sys_win.c b/engine/server/sv_sys_win.c index 08737d924..a6b0de14a 100644 --- a/engine/server/sv_sys_win.c +++ b/engine/server/sv_sys_win.c @@ -471,7 +471,7 @@ void ApplyColour(unsigned int chr) // bits 28-31 of the console chars match up to the attributes for // the CHAR_INFO struct exactly if (chr & CON_NONCLEARBG) - val = (chr & (CON_FGMASK|CON_BGMASK) >> CON_FGSHIFT); + val = ((chr & (CON_FGMASK|CON_BGMASK)) >> CON_FGSHIFT); else { int fg = (chr & CON_FGMASK) >> CON_FGSHIFT;