]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
changed EntityFrame5_ExpandEdicts call from using sv.num_edicts to sv.max_edicts...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 19 May 2005 18:42:55 +0000 (18:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 19 May 2005 18:42:55 +0000 (18:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5314 d7cf8633-e32d-0410-b094-e92efae38249

protocol.c

index a787f35e70f0a99f03fac4d70b4c355951423954..eafd3e74a807f95933567ad21dd91cd44949bd63 100644 (file)
@@ -1941,8 +1941,8 @@ void EntityFrame5_WriteFrame(sizebuf_t *msg, entityframe5_database_t *d, int num
        qbyte data[128];
        entityframe5_packetlog_t *packetlog;
 
-       if (sv.num_edicts > d->maxedicts)
-               EntityFrame5_ExpandEdicts(d, (sv.num_edicts + 255) & ~255);
+       if (sv.max_edicts > d->maxedicts)
+               EntityFrame5_ExpandEdicts(d, (sv.max_edicts + 255) & ~255);
 
        framenum = d->latestframenum + 1;
        d->viewentnum = viewentnum;