From 933d8c9fea47bcfa7c506d9f97fde60251eb1afd Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Mon, 12 Nov 2001 19:33:33 +0000 Subject: [PATCH] reenabled some invisible entity checking (probably no difference) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1042 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sv_main.c b/sv_main.c index aad188ab..d280f47d 100644 --- a/sv_main.c +++ b/sv_main.c @@ -613,7 +613,7 @@ void SV_WriteEntitiesToClient (client_t *client, edict_t *clent, sizebuf_t *msg) } else { - VectorCopy(ent->v.origin, origin); + VectorCopy(ent->v.origin, origin); } if (ent->v.movetype == MOVETYPE_STEP) // monster, but airborn, update lerp info { @@ -687,17 +687,17 @@ void SV_WriteEntitiesToClient (client_t *client, edict_t *clent, sizebuf_t *msg) if (ent != clent) { -// if (glowsize == 0 && (bits & U_GLOWTRAIL) == 0) // no effects -// { -// if (ent->v.modelindex && pr_strings[ent->v.model]) // model -// { + if (glowsize == 0 && (bits & U_GLOWTRAIL) == 0) // no effects + { + if (ent->v.modelindex && pr_strings[ent->v.model]) // model + { // don't send if flagged for NODRAW and there are no effects if (sv.models[(int)ent->v.modelindex]->flags == 0 && ((effects & EF_NODRAW) || scale <= 0 || alpha <= 0)) continue; -// } -// else // no model and no effects -// continue; -// } + } + else // no model and no effects + continue; + } } if (msg->maxsize - msg->cursize < 32) // LordHavoc: increased check from 16 to 32 -- 2.39.2