]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a basic cvar check to avoid running code uselessly
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Apr 2011 15:24:50 +0000 (18:24 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 10 Apr 2011 15:24:50 +0000 (18:24 +0300)
qcsrc/client/gibs.qc

index 4c07a1b595b73cd9a8c29e11db689a2d89d8589d..2ce8a9012d990f2ee43faf4e76fc524a066a03c8 100644 (file)
@@ -319,6 +319,7 @@ void Ent_DamageEffect()
 
        // Scan the owner of all gibs in the world. If a gib owner is the same as the player we're applying the
        // effect to, it means our player is gibbed. Therefore, apply the particles to the gibs as well.
+       if(autocvar_cl_damageeffect_gibs)
        for(head = world; (head = find(head, classname, "gib")); )
        {
                if(head.team == entnumber)