]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
reenabled some invisible entity checking (probably no difference)
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Nov 2001 19:33:33 +0000 (19:33 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 12 Nov 2001 19:33:33 +0000 (19:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1042 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index aad188abc770d59a481498363e863528797e2291..d280f47d1ee11dd3b301042ed6955c1a72791d87 100644 (file)
--- 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