From: lordhavoc Date: Sat, 21 Oct 2000 10:22:24 +0000 (+0000) Subject: fix for serious bug in .nodrawtoclient, .drawonlytoclient, and .viewmodelforclient... X-Git-Tag: RELEASE_0_2_0_RC1~961 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=659c21ef2dc9b2aee04f7ea76c2dd7198324a4d0;p=xonotic%2Fdarkplaces.git fix for serious bug in .nodrawtoclient, .drawonlytoclient, and .viewmodelforclient comparisons - they now work git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@59 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_main.c b/sv_main.c index d3abe086..d888e5a0 100644 --- a/sv_main.c +++ b/sv_main.c @@ -443,7 +443,7 @@ void SV_WriteEntitiesToClient (edict_t *clent, sizebuf_t *msg) MSG_WriteFloat(msg, org[2]); } - clentnum = NUM_FOR_EDICT(clent); // LordHavoc: for comparison purposes + clentnum = EDICT_TO_PROG(clent); // LordHavoc: for comparison purposes // send over all entities (except the client) that touch the pvs ent = NEXT_EDICT(sv.edicts); for (e=1 ; e