]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Modified 3 casts to get rid of a few warnings in MSVC6.
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Feb 2002 08:59:38 +0000 (08:59 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 20 Feb 2002 08:59:38 +0000 (08:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1544 d7cf8633-e32d-0410-b094-e92efae38249

gl_draw.c

index 959e712d70558da646372ddf020e8012a45824b7..e104cef9099485e0942e7d52ae21f768d8172d80 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -391,7 +391,7 @@ void R_DrawQueue(void)
                if (color != dq->color)
                {
                        color = dq->color;
-                       glColor4ub((byte)((color >> 24) & 0xFF) >> overbright, (byte)((color >> 16) & 0xFF) >> overbright, (byte)((color >> 8) & 0xFF) >> overbright, (byte)(color & 0xFF));
+                       glColor4ub((byte)(((color >> 24) & 0xFF) >> overbright), (byte)(((color >> 16) & 0xFF) >> overbright), (byte)(((color >> 8) & 0xFF) >> overbright), (byte)(color & 0xFF));
                }
                x = dq->x;
                y = dq->y;