From: havoc Date: Sun, 10 Nov 2002 02:22:43 +0000 (+0000) Subject: don't send free entities! (I've been observing this bug for months) X-Git-Tag: RELEASE_0_2_0_RC1~78 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=15385eea918cd3d085dd4d5b1bd7b76b9babc28b;p=xonotic%2Fdarkplaces.git 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 --- 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