From: Mircea Kitsune Date: Sun, 10 Apr 2011 15:24:50 +0000 (+0300) Subject: Add a basic cvar check to avoid running code uselessly X-Git-Tag: xonotic-v0.6.0~110^2^2~120 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ad8e3697cb58e2f99bd481c5751766b7c35e48d9;p=xonotic%2Fxonotic-data.pk3dir.git Add a basic cvar check to avoid running code uselessly --- 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)