From 15385eea918cd3d085dd4d5b1bd7b76b9babc28b Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 10 Nov 2002 02:22:43 +0000 Subject: [PATCH] don't send free entities! (I've been observing this bug for months) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2613 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sv_main.c b/sv_main.c index 82318441..cd283f9e 100644 --- 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 -- 2.39.2