]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - menu.c
implemented cl_particles_quake cvar to use quake-style particle effects
[xonotic/darkplaces.git] / menu.c
diff --git a/menu.c b/menu.c
index 283728f0a616bc23e22f2242459a5b696ceb7f52..80953b1688b62d89644ac7ad5a9246a939b01d39 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -1770,7 +1770,7 @@ void M_Options_Key (int k, char ascii)
        }
 }
 
-#define        OPTIONS_EFFECTS_ITEMS   34
+#define        OPTIONS_EFFECTS_ITEMS   35
 
 int options_effects_cursor;
 
@@ -1807,6 +1807,7 @@ void M_Menu_Options_Effects_AdjustSliders (int dir)
             if (options_effects_cursor == optnum++) Cvar_SetValueQuick (&r_coronas, bound(0, r_coronas.value + dir * 0.125, 4));
        else if (options_effects_cursor == optnum++) Cvar_SetValueQuick (&gl_flashblend, !gl_flashblend.integer);
        else if (options_effects_cursor == optnum++) Cvar_SetValueQuick (&cl_particles, !cl_particles.integer);
+       else if (options_effects_cursor == optnum++) Cvar_SetValueQuick (&cl_particles_quake, !cl_particles_quake.integer);
        else if (options_effects_cursor == optnum++) Cvar_SetValueQuick (&cl_particles_quality, bound(1, cl_particles_quality.value + dir * 0.5, 4));
        else if (options_effects_cursor == optnum++) Cvar_SetValueQuick (&cl_particles_explosions_shell, !cl_particles_explosions_shell.integer);
        else if (options_effects_cursor == optnum++) Cvar_SetValueQuick (&r_explosionclip, !r_explosionclip.integer);
@@ -1859,6 +1860,7 @@ void M_Options_Effects_Draw (void)
        M_Options_PrintSlider(  "      Corona Intensity", true, r_coronas.value, 0, 4);
        M_Options_PrintCheckbox("      Use Only Coronas", true, gl_flashblend.integer);
        M_Options_PrintCheckbox("             Particles", true, cl_particles.integer);
+       M_Options_PrintCheckbox(" Quake-style Particles", true, cl_particles_quake.integer);
        M_Options_PrintSlider(  "     Particles Quality", true, cl_particles_quality.value, 1, 4);
        M_Options_PrintCheckbox("       Explosion Shell", true, cl_particles_explosions_shell.integer);
        M_Options_PrintCheckbox("  Explosion Shell Clip", true, r_explosionclip.integer);