]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
Don't duplicate the entity relinking when using CSQC.
[xonotic/darkplaces.git] / cl_main.c
index ebde7dae978654ee2e576c4a951e77c8c3e0af65..dbb774afc77097c00872e9ec210f4989470f520d 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1948,7 +1948,9 @@ void CL_UpdateWorld(void)
                // update the engine-based viewmodel
                CL_UpdateViewModel();
 
-               CSQC_RelinkAllEntities(ENTMASK_ENGINE | ENTMASK_ENGINEVIEWMODELS);
+               // when csqc is loaded, it will call this in CSQC_UpdateView
+               if (!cl.csqc_loaded)
+                       CSQC_RelinkAllEntities(ENTMASK_ENGINE | ENTMASK_ENGINEVIEWMODELS);
 
                // decals, particles, and explosions will be updated during rneder
        }