From: Mario Date: Wed, 14 Sep 2022 04:44:00 +0000 (+1000) Subject: Clean up some inconsistent whitespacing X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5330050d13244edf2c8f4cd85787215445aa141b;p=xonotic%2Fxonotic-data.pk3dir.git Clean up some inconsistent whitespacing --- diff --git a/qcsrc/common/weapons/weapon/electro.qc b/qcsrc/common/weapons/weapon/electro.qc index a68ad35bd..dd272d274 100644 --- a/qcsrc/common/weapons/weapon/electro.qc +++ b/qcsrc/common/weapons/weapon/electro.qc @@ -670,16 +670,16 @@ METHOD(Electro, wr_impacteffect, void(entity thiswep, entity actor)) } else { - if(w_deathtype & HITTYPE_SPLASH) - { - org2 = w_org + w_backoff * 2; - if(particleeffectnum(EFFECT_ELECTRO_COMBO_LONG) >= 0) - pointparticles(EFFECT_ELECTRO_COMBO_LONG, org2, '0 0 0', 1); - else - pointparticles(EFFECT_HOOK_EXPLODE, org2, '0 0 0', 1); + if(w_deathtype & HITTYPE_SPLASH) + { + org2 = w_org + w_backoff * 2; + if(particleeffectnum(EFFECT_ELECTRO_COMBO_LONG) >= 0) + pointparticles(EFFECT_ELECTRO_COMBO_LONG, org2, '0 0 0', 1); + else + pointparticles(EFFECT_HOOK_EXPLODE, org2, '0 0 0', 1); if(!w_issilent) sound(actor, CH_SHOTS, SND_ELECTRO_IMPACT_COMBO, VOL_BASE, ATTEN_NORM); - } + } else if(w_deathtype & HITTYPE_BOUNCE) { // this is sent as "primary (w_deathtype & HITTYPE_BOUNCE)" to distinguish it from (w_deathtype & HITTYPE_SECONDARY) bounced balls