]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix decals not appearing if a grenade explodes slighlty above the ground as reported...
authorterencehill <piuntn@gmail.com>
Thu, 15 Dec 2022 17:44:31 +0000 (18:44 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 15 Dec 2022 17:44:31 +0000 (18:44 +0100)
qcsrc/common/weapons/weapon/mortar.qc

index 52b8a571a51eb34e0265bf7fb52a3d0676e57a57..2152accff03f070d74a8875d4ad8b01e9cfd3dee 100644 (file)
@@ -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);
 }