]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_explosion.c
This made the cvar completion so much more readable
[xonotic/darkplaces.git] / r_explosion.c
index 000fc692a9863123e98465221724442a0e969028..28f8bae0ff05679069a0ea9f86a6ce87f916d444 100644 (file)
@@ -52,8 +52,8 @@ static rtexture_t     *explosiontexturefog;
 
 static rtexturepool_t  *explosiontexturepool;
 
-cvar_t r_explosionclip = {CVAR_SAVE, "r_explosionclip", "1"};
-static cvar_t r_drawexplosions = {0, "r_drawexplosions", "1"};
+cvar_t r_explosionclip = {CVAR_SAVE, "r_explosionclip", "1", "enables collision detection for explosion shell (so that it flattens against walls and floors)"};
+static cvar_t r_drawexplosions = {0, "r_drawexplosions", "1", "enables rendering of explosion shells (see also cl_particles_explosions_shell)"};
 
 static void r_explosion_start(void)
 {
@@ -190,7 +190,7 @@ static void R_DrawExplosion_TransparentCallback(const entity_render_t *ent, int
        GL_BlendFunc(GL_SRC_ALPHA, GL_ONE);
        GL_DepthMask(false);
        GL_DepthTest(true);
-       R_Mesh_Matrix(&r_identitymatrix);
+       R_Mesh_Matrix(&identitymatrix);
 
        numtriangles = EXPLOSIONTRIS;
        numverts = EXPLOSIONVERTS;