]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - protocol.c
fix a bug in server support for PROTOCOL_NEHAHRAMOVIE
[xonotic/darkplaces.git] / 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);