]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix clientside bmodel collisions (now can walk around on the start.bsp main room...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 15 Apr 2006 06:46:09 +0000 (06:46 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 15 Apr 2006 06:46:09 +0000 (06:46 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6280 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c

index e4f59f635b8931c4c16e26c54a27a1e16e3025cb..22acc719e757b6e6a0850b787265f085d88ca8d2 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1488,6 +1488,7 @@ void CL_LerpPlayer(float frac)
 
 void CSQC_RelinkAllEntities (int drawmask)
 {
+       cl.num_brushmodel_entities = 0;
        CL_RelinkNetworkEntities(drawmask);
        if(drawmask & ENTMASK_ENGINE)
        {
@@ -1526,7 +1527,6 @@ int CL_ReadFromServer(void)
        r_refdef.extraupdate = !r_speeds.integer;
        r_refdef.numentities = 0;
        r_refdef.viewentitymatrix = identitymatrix;
-       cl.num_brushmodel_entities = 0;
 
        if (cls.state == ca_connected && cls.signon == SIGNONS)
        {
@@ -1541,6 +1541,7 @@ int CL_ReadFromServer(void)
                CL_ClientMovement_Replay();
                if(!csqc_loaded)        //[515]: csqc
                {
+                       cl.num_brushmodel_entities = 0;
                        CL_RelinkNetworkEntities(65535);
 
                        // move particles