]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_main.c
validate more when loading zymotic models, also reverse triangles so they don't rende...
[xonotic/darkplaces.git] / cl_main.c
index f78a191979b5293db3ef52a394e7a5c7cbe27a18..c2f433c61466dcfb59877ab16c2e8968a48765c9 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -108,7 +108,6 @@ void CL_ClearState (void)
        memset(cl_effect, 0, sizeof(cl_effect));
        CL_Screen_NewMap();
        CL_Particles_Clear();
-       CL_Decals_Clear();
        // LordHavoc: have to set up the baseline info for alpha and other stuff
        for (i = 0;i < MAX_EDICTS;i++)
        {
@@ -506,7 +505,7 @@ static void CL_RelinkNetworkEntities()
                                v2[2] = v[2] * 18 + neworg[2] + 16;
                                TraceLine(neworg, v2, v, NULL, 0, true);
 
-                               CL_AllocDlight (NULL, v, 100, 1, 1, 1, 0, 0.1);
+                               CL_AllocDlight (NULL, v, 100, 1, 1, 1, 0, 0);
                        }
                        if (effects & EF_DIMLIGHT)
                        {
@@ -626,7 +625,7 @@ static void CL_RelinkNetworkEntities()
                        // hack to make glowing player light shine on their gun
                        if (i == cl.viewentity && !chase_active.integer)
                                vec[2] += 30;
-                       CL_AllocDlight (&ent->render, vec, dlightradius, dlightcolor[0] * d, dlightcolor[1] * d, dlightcolor[2] * d, 0, 0);
+                       CL_AllocDlight (/*&ent->render*/ NULL, vec, dlightradius, dlightcolor[0] * d, dlightcolor[1] * d, dlightcolor[2] * d, 0, 0);
                }
 
                if (chase_active.integer)
@@ -752,12 +751,12 @@ static void CL_RelinkEffects()
 
 void CL_RelinkEntities (void)
 {
+       CL_DecayLights ();
        CL_LerpPlayerVelocity();
        CL_RelinkNetworkEntities();
        TraceLine_ScanForBModels();
        CL_RelinkEffects();
        CL_MoveParticles();
-       CL_UpdateDecals();
        CL_UpdateTEnts();
 }
 
@@ -986,7 +985,6 @@ void CL_Init (void)
 
        CL_Parse_Init();
        CL_Particles_Init();
-       CL_Decals_Init();
        CL_Screen_Init();
        CL_CGVM_Init();
 }