]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/View.qc
Remove the old saturation slider from the menu, and add the armor based saturation...
[voretournament/voretournament.git] / data / qcsrc / client / View.qc
index 843d0df23e2f572117cc9d1ac0802e94b8f33343..e6f9a562a584045863c29ea27dd471b2ce5d24e6 100644 (file)
@@ -808,12 +808,12 @@ void CSQC_UpdateView(float w, float h)
                cvar_set("r_glsl_postprocess_uservec2_enable", "0");\r
        }\r
 \r
                cvar_set("r_glsl_postprocess_uservec2_enable", "0");\r
        }\r
 \r
-       if(cvar("hud_postprocessing") && cvar("hud_saturation"))\r
+       if(cvar("hud_postprocessing"))\r
        {\r
                // change saturation based on the amount of armor we have\r
                // ranges between 0 and 50 armor. 0 armor is saturation 0.5, and 0.5 armor or above is saturation 1\r
 \r
        {\r
                // change saturation based on the amount of armor we have\r
                // ranges between 0 and 50 armor. 0 armor is saturation 0.5, and 0.5 armor or above is saturation 1\r
 \r
-               if(armor_enabled && spectatee_status != -1 && getstati(STAT_HEALTH) > 0)\r
+               if(cvar("hud_saturation") && armor_enabled && spectatee_status != -1 && getstati(STAT_HEALTH) > 0)\r
                {\r
                        float saturation;\r
                        saturation = 0.5 + (getstati(STAT_ARMOR) * 1 * 0.01);\r
                {\r
                        float saturation;\r
                        saturation = 0.5 + (getstati(STAT_ARMOR) * 1 * 0.01);\r