From d6b8c50b14bef9ad4d5bda63950923c8df91743a Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 18 Oct 2006 23:33:18 +0000 Subject: [PATCH] Fixes the red glows issue in hexen2. I would do it the other way, but H2 depends on entities for sounds (and qw requires entities for origins). git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2414 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_ents.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/engine/server/sv_ents.c b/engine/server/sv_ents.c index fa93cce7..eac2ff52 100644 --- a/engine/server/sv_ents.c +++ b/engine/server/sv_ents.c @@ -2327,6 +2327,9 @@ void SV_WriteEntitiesToClient (client_t *client, sizebuf_t *msg, qboolean ignore if (progstype != PROG_QW) { +// if (progstype == PROG_H2) +// if (ent->v->effects == H2EF_NODRAW) +// continue; if ((int)ent->v->effects & EF_MUZZLEFLASH) { if (needcleanup < e) @@ -2562,8 +2565,17 @@ void SV_WriteEntitiesToClient (client_t *client, sizebuf_t *msg, qboolean ignore //The client still needs to know about it though, as it might have other effects on it. if (progstype == PROG_H2) { - if (state->effects & H2EF_NODRAW) + if (state->effects == H2EF_NODRAW) + { + //actually, H2 is pretty lame about this + state->effects = 0; state->modelindex = 0; + state->frame = 0; + state->colormap = 0; + state->abslight = 0; + state->skinnum = 0; + state->hexen2flags = 0; + } } else {