From 76fdf11cac2225199d63115fb36d2b229e8a179f Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 20 Oct 2005 00:04:57 +0000 Subject: [PATCH] Fixes the remove bug with >512 entities. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1508 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_ents.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_ents.c b/engine/client/cl_ents.c index 2e0479248..01e4d1d0a 100644 --- a/engine/client/cl_ents.c +++ b/engine/client/cl_ents.c @@ -637,7 +637,11 @@ void CL_ParsePacketEntities (qboolean delta) { // new from baseline //Con_Printf ("baseline %i\n", newnum); if (word & U_REMOVE) - { + { //really read the extra entity number if required + if (word & U_MOREBITS) + if (MSG_ReadByte() & U_EVENMORE) + MSG_ReadByte(); + if (full) { cl.validsequence = 0; @@ -667,6 +671,9 @@ void CL_ParsePacketEntities (qboolean delta) } if (word & U_REMOVE) { + if (word & U_MOREBITS) + if (MSG_ReadByte() & U_EVENMORE) + MSG_ReadByte(); oldindex++; continue; }