don't send free entities! (I've been observing this bug for months)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 10 Nov 2002 02:22:43 +0000 (02:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 10 Nov 2002 02:22:43 +0000 (02:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2613 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 8231844..cd283f9 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -907,6 +907,8 @@ void SV_WriteEntitiesToClient (client_t *client, edict_t *clent, sizebuf_t *msg)
        ent = NEXT_EDICT(sv.edicts);
        for (e = 1;e < sv.num_edicts;e++, ent = NEXT_EDICT(ent))
        {
+               if (ent->free)
+                       continue;
                flags = 0;
 
                if (ent != clent) // LordHavoc: always send player