]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
fix stupid typo in GLSL shader
[xonotic/darkplaces.git] / cl_main.c
index 8f244af96edb799d35343819b7c34dc6113b81ae..19d058e3d8ecbc08264698d778328488cfa05b1a 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -959,10 +959,11 @@ static void CL_RelinkNetworkEntities(void)
 
        // start on the entity after the world
        entitylinkframenumber++;
-       for (i = 1, ent = cl_entities + 1;i < MAX_EDICTS;i++, ent++)
+       for (i = 1;i < MAX_EDICTS;i++)
        {
                if (cl_entities_active[i])
                {
+                       ent = cl_entities + i;
                        if (ent->state_current.active)
                                CL_LinkNetworkEntity(ent);
                        else
@@ -1307,6 +1308,12 @@ CL_Shutdown
 */
 void CL_Shutdown (void)
 {
+       CL_CGVM_Shutdown();
+       CL_Particles_Shutdown();
+       CL_Parse_Shutdown();
+
+       SZ_Free (&cls.message);
+
        Mem_FreePool (&cl_entities_mempool);
        Mem_FreePool (&cl_refdef_mempool);
 }