]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_particles.c
a nice improvement to the loading plaque: displaying the name of what's being loaded
[xonotic/darkplaces.git] / cl_particles.c
index cb3585c394cdebb88e415f9e8d2068b1cf5158a2..67ee07844c7aca41773e4e99c6b9f98db3441c0f 100644 (file)
@@ -617,14 +617,13 @@ void CL_SpawnDecalParticleForSurface(int hitent, const vec3_t org, const vec3_t
        }
        else
        {
-               if(r_refdef.scene.worldmodel->brush.PointInLeaf)
+               if(r_refdef.scene.worldmodel && r_refdef.scene.worldmodel->brush.PointInLeaf)
                {
                        mleaf_t *leaf = r_refdef.scene.worldmodel->brush.PointInLeaf(r_refdef.scene.worldmodel, decal->org);
                        if(leaf)
                                decal->clusterindex = leaf->clusterindex;
                }
        }
-       Con_Printf("hitent=%i clusterindex=%i\n", hitent, decal->clusterindex);
 }
 
 void CL_SpawnDecalParticleForPoint(const vec3_t org, float maxdist, float size, float alpha, int texnum, int color1, int color2)
@@ -2503,7 +2502,7 @@ void R_DrawParticles (void)
                default:
                        if(cl_particles_visculling.integer)
                                if (!r_refdef.viewcache.world_novis)
-                                       if(r_refdef.scene.worldmodel->brush.PointInLeaf)
+                                       if(r_refdef.scene.worldmodel && r_refdef.scene.worldmodel->brush.PointInLeaf)
                                        {
                                                mleaf_t *leaf = r_refdef.scene.worldmodel->brush.PointInLeaf(r_refdef.scene.worldmodel, p->org);
                                                if(leaf)