From: terencehill Date: Thu, 15 Dec 2022 17:44:31 +0000 (+0100) Subject: Fix decals not appearing if a grenade explodes slighlty above the ground as reported... X-Git-Tag: xonotic-v0.8.6~226^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2b8c7a195558bfdd8b28c0bbd8f969960a3e4cf3;p=xonotic%2Fxonotic-data.pk3dir.git Fix decals not appearing if a grenade explodes slighlty above the ground as reported in #2777; fixed by reducing w_backoff factor to 1 --- diff --git a/qcsrc/common/weapons/weapon/mortar.qc b/qcsrc/common/weapons/weapon/mortar.qc index 52b8a571a..2152accff 100644 --- a/qcsrc/common/weapons/weapon/mortar.qc +++ b/qcsrc/common/weapons/weapon/mortar.qc @@ -358,9 +358,7 @@ METHOD(Mortar, wr_killmessage, Notification(entity thiswep)) METHOD(Mortar, wr_impacteffect, void(entity thiswep, entity actor)) { - vector org2; - org2 = w_org + w_backoff * 12; - pointparticles(EFFECT_GRENADE_EXPLODE, org2, '0 0 0', 1); + pointparticles(EFFECT_GRENADE_EXPLODE, w_org + w_backoff, '0 0 0', 1); if(!w_issilent) sound(actor, CH_SHOTS, SND_GRENADE_IMPACT, VOL_BASE, ATTN_NORM); }