hedgewars/uGearsUtils.pas
changeset 14012 cfbea054754c
parent 14011 105793e575d6
child 14013 967ed77d6aef
--- a/hedgewars/uGearsUtils.pas	Sat Oct 27 07:20:07 2018 +0300
+++ b/hedgewars/uGearsUtils.pas	Sat Oct 27 07:39:44 2018 +0300
@@ -1321,7 +1321,8 @@
     begin
     dec(i);
     Gear:= t^.ar[i];
-    if (Ammo^.Kind in [gtDEagleShot, gtSniperRifleShot, gtMinigunBullet, gtFirePunch])
+    if (Ammo^.Kind in [gtDEagleShot, gtSniperRifleShot, gtMinigunBullet,
+                       gtFirePunch, gtKamikaze])
         and (((Ammo^.Data <> nil) and (PGear(Ammo^.Data) = Gear))
              or (not UpdateHitOrder(Gear, Ammo^.WDTimer))) then
         continue;
@@ -1347,7 +1348,7 @@
             gtExplosives: //,
             //gtStructure:
             begin
-            if (Ammo^.Kind = gtFirePunch) and (Gear^.Kind <> gtSMine) then
+            if (Ammo^.Kind in [gtFirePunch, gtKamikaze]) and (Gear^.Kind <> gtSMine) then
                 PlaySound(sndFirePunchHit);
 
             if Ammo^.Kind in [gtDEagleShot, gtSniperRifleShot, gtMinigunBullet] then