No firepunch hit sound for sticky mines
authorWuzzy <Wuzzy2@mail.ru>
Sat, 27 Oct 2018 03:17:05 +0200
changeset 14022 fd336864382e
parent 14021 ccb0ef084596
child 14023 e9ab9639a1af
No firepunch hit sound for sticky mines
hedgewars/uGearsUtils.pas
--- a/hedgewars/uGearsUtils.pas	Sat Oct 27 03:06:28 2018 +0200
+++ b/hedgewars/uGearsUtils.pas	Sat Oct 27 03:17:05 2018 +0200
@@ -1346,7 +1346,7 @@
             gtExplosives: //,
             //gtStructure:
             begin
-            if Ammo^.Kind = gtFirePunch then
+            if (Ammo^.Kind = gtFirePunch) and (Gear^.Kind <> gtSMine) then
                 PlaySound(sndFirePunchHit);
 
             if Ammo^.Kind in [gtDEagleShot, gtSniperRifleShot, gtMinigunBullet] then