]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a bug in server support for PROTOCOL_NEHAHRAMOVIE
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 14 Jun 2007 03:40:06 +0000 (03:40 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 14 Jun 2007 03:40:06 +0000 (03:40 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7413 d7cf8633-e32d-0410-b094-e92efae38249

protocol.c

index 2bebb4866ae23ac543a595f8edfc95b4915f57b5..1e4ea16926d4a027ff118228eabc93801d414a14 100644 (file)
@@ -539,8 +539,11 @@ void EntityFrameQuake_WriteFrame(sizebuf_t *msg, int numstates, const entity_sta
 
                MSG_WriteByte (&buf, bits);
                if (bits & U_MOREBITS)          MSG_WriteByte(&buf, bits>>8);
-               if (bits & U_EXTEND1)           MSG_WriteByte(&buf, bits>>16);
-               if (bits & U_EXTEND2)           MSG_WriteByte(&buf, bits>>24);
+               if (sv.protocol != PROTOCOL_NEHAHRAMOVIE)
+               {
+                       if (bits & U_EXTEND1)   MSG_WriteByte(&buf, bits>>16);
+                       if (bits & U_EXTEND2)   MSG_WriteByte(&buf, bits>>24);
+               }
                if (bits & U_LONGENTITY)        MSG_WriteShort(&buf, s->number);
                else                                            MSG_WriteByte(&buf, s->number);