From 21c9394dec05a9a8f6bba0f600ef59b9bba01a2b Mon Sep 17 00:00:00 2001 From: TimeServ Date: Mon, 19 Jun 2006 21:56:42 +0000 Subject: [PATCH] EF_ADDITIVE should work under QW protocol for NQ mods git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2333 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_ents.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/server/sv_ents.c b/engine/server/sv_ents.c index b68fe1ced..2f7d449bd 100644 --- a/engine/server/sv_ents.c +++ b/engine/server/sv_ents.c @@ -2315,6 +2315,7 @@ void SV_WriteEntitiesToClient (client_t *client, sizebuf_t *msg, qboolean ignore state->number++; state->skinnum = 1; } + state->effects &= ~(QWEF_FLAG1 | QWEF_FLAG2); } #ifdef NQPROT @@ -2553,6 +2554,9 @@ void SV_WriteEntitiesToClient (client_t *client, sizebuf_t *msg, qboolean ignore } } + if (state->effects & 0x32) + state->effects |= 0; + if (state->effects & EF_FULLBRIGHT) { state->hexen2flags |= MLS_FULLBRIGHT; @@ -2572,7 +2576,8 @@ void SV_WriteEntitiesToClient (client_t *client, sizebuf_t *msg, qboolean ignore state->modelindex = 0; } - state->effects &= ~ (QWEF_FLAG1|QWEF_FLAG2); + if (e <= sv.allocated_client_slots) // clear only client ents + state->effects &= ~ (QWEF_FLAG1|QWEF_FLAG2); } if (!ent->v->colormod[0] && !ent->v->colormod[1] && !ent->v->colormod[2])