From ad8e3697cb58e2f99bd481c5751766b7c35e48d9 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Sun, 10 Apr 2011 18:24:50 +0300 Subject: [PATCH] Add a basic cvar check to avoid running code uselessly --- qcsrc/client/gibs.qc | 1 + 1 file changed, 1 insertion(+) diff --git a/qcsrc/client/gibs.qc b/qcsrc/client/gibs.qc index 4c07a1b59..2ce8a9012 100644 --- a/qcsrc/client/gibs.qc +++ b/qcsrc/client/gibs.qc @@ -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) -- 2.39.2