]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix for serious bug in .nodrawtoclient, .drawonlytoclient, and .viewmodelforclient...
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Oct 2000 10:22:24 +0000 (10:22 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Oct 2000 10:22:24 +0000 (10:22 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@59 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index d3abe0861ec01b36e48ed8e967708fb76b3bb1dd..d888e5a03c2bdc7a82d2a01d0f76f812986a3833 100644 (file)
--- 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<sv.num_edicts ; e++, ent = NEXT_EDICT(ent))