X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=r_explosion.c;h=28f8bae0ff05679069a0ea9f86a6ce87f916d444;hb=b8d63f8b1a4a6d8cc880be5ff8ea83aa6fbba365;hp=000fc692a9863123e98465221724442a0e969028;hpb=2a1615321fd8f4a44b97d5b980bb15a4a2132292;p=xonotic%2Fdarkplaces.git diff --git a/r_explosion.c b/r_explosion.c index 000fc692..28f8bae0 100644 --- a/r_explosion.c +++ b/r_explosion.c @@ -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;