]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix typos that caused colormod to malfunction when hosting a QUAKEDP protocol server...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 25 Feb 2006 08:56:03 +0000 (08:56 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 25 Feb 2006 08:56:03 +0000 (08:56 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6027 d7cf8633-e32d-0410-b094-e92efae38249

protocol.c

index 028bc6fff79b3eca7c7e066d5b69c29f4e5d0642..ad5fe83e0d3ebede9d0bb729a54dd3680d9fb6a2 100644 (file)
@@ -491,7 +491,7 @@ void EntityFrameQuake_WriteFrame(sizebuf_t *msg, int numstates, const entity_sta
                if (bits & U_EFFECTS2)          MSG_WriteByte(&buf, s->effects >> 8);
                if (bits & U_GLOWSIZE)          MSG_WriteByte(&buf, s->glowsize);
                if (bits & U_GLOWCOLOR)         MSG_WriteByte(&buf, s->glowcolor);
-               if (bits & U_COLORMOD)          {int c = ((int)bound(0, s->colormod[0] * (7.0f / 32.0f), 7) << 5) | ((int)bound(0, s->colormod[0] * (7.0f / 32.0f), 7) << 2) | ((int)bound(0, s->colormod[0] * (3.0f / 32.0f), 3) << 0);MSG_WriteByte(&buf, c);}
+               if (bits & U_COLORMOD)          {int c = ((int)bound(0, s->colormod[0] * (7.0f / 32.0f), 7) << 5) | ((int)bound(0, s->colormod[1] * (7.0f / 32.0f), 7) << 2) | ((int)bound(0, s->colormod[2] * (3.0f / 32.0f), 3) << 0);MSG_WriteByte(&buf, c);}
                if (bits & U_FRAME2)            MSG_WriteByte(&buf, s->frame >> 8);
                if (bits & U_MODEL2)            MSG_WriteByte(&buf, s->modelindex >> 8);