]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Minor cleanup of a local copy of an autocvar 1447/head
authorMario <mario.mario@y7mail.com>
Sun, 26 Jan 2025 12:41:20 +0000 (22:41 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 26 Jan 2025 12:41:20 +0000 (22:41 +1000)
qcsrc/common/effects/qc/gibs.qc

index 82217ab30397ddd679364b6c44cd09d045696b0b..76559f07ac2163a8a2dc37a459ea50b79eb2f1f3 100644 (file)
@@ -224,15 +224,14 @@ NET_HANDLE(net_gibsplash, bool isNew)
 
        return = true;
 
-       float cl_gentle_gibs = autocvar_cl_gentle_gibs;
-       if(cl_gentle_gibs || autocvar_cl_gentle)
+       if(autocvar_cl_gentle_gibs || autocvar_cl_gentle)
                type |= 0x80; // set gentle bit
 
        if(type & 0x80)
        {
-               if(cl_gentle_gibs == 2)
+               if(autocvar_cl_gentle_gibs == 2)
                        gentle_prefix = "";
-               else if(cl_gentle_gibs == 3)
+               else if(autocvar_cl_gentle_gibs == 3)
                        gentle_prefix = "happy_";
        }
        else if(autocvar_cl_particlegibs)
@@ -241,7 +240,7 @@ NET_HANDLE(net_gibsplash, bool isNew)
                gentle_prefix = "particlegibs_";
        }
 
-       if (!(cl_gentle_gibs || autocvar_cl_gentle))
+       if (!(autocvar_cl_gentle_gibs || autocvar_cl_gentle))
                amount *= 1 - autocvar_cl_nogibs;
 
        if(autocvar_ekg)