From 2a44b90e383303113fd127f9ad5e7f0c0092628f Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 14 Jun 2007 03:40:06 +0000 Subject: [PATCH] fix a bug in server support for PROTOCOL_NEHAHRAMOVIE git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7413 d7cf8633-e32d-0410-b094-e92efae38249 --- protocol.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/protocol.c b/protocol.c index 2bebb486..1e4ea169 100644 --- a/protocol.c +++ b/protocol.c @@ -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); -- 2.39.2