From c25e7908f0c5b6418acd235ba03576fe42b5b431 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 4 Dec 2018 06:04:47 +0000 Subject: [PATCH] fix PVSF_NOREMOVE bug. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5350 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_ents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/server/sv_ents.c b/engine/server/sv_ents.c index 944459719..f4e7f5335 100644 --- a/engine/server/sv_ents.c +++ b/engine/server/sv_ents.c @@ -328,7 +328,7 @@ void SV_EmitCSQCUpdate(client_t *client, sizebuf_t *msg, qbyte svcnumber) { if (!(client->pendingcsqcbits[entnum] & SENDFLAGS_REMOVED)) { //while the entity has NOREMOVE, only remove it if the remove is a resend - if ((int)EDICT_NUM_PB(svprogfuncs, en)->xv->pvsflags & PVSF_NOREMOVE) + if ((int)EDICT_NUM_PB(svprogfuncs, entnum)->xv->pvsflags & PVSF_NOREMOVE) continue; } if (msg->cursize + 5 >= msg->maxsize) @@ -450,7 +450,7 @@ void SV_EmitCSQCUpdate(client_t *client, sizebuf_t *msg, qbyte svcnumber) if (client->pendingcsqcbits[entnum] & (SENDFLAGS_PRESENT|SENDFLAGS_REMOVED)) { if (!(client->pendingcsqcbits[entnum] & SENDFLAGS_REMOVED)) - { //while the entity has NOREMOVE, only remove it if the remove is a resend + { //while the original entity has NOREMOVE, only remove it if the remove is a resend if ((int)EDICT_NUM_PB(svprogfuncs, entnum)->xv->pvsflags & PVSF_NOREMOVE) continue; }