hedgewars/uGearsUtils.pas
changeset 14201 ab5e710d353d
parent 14046 44f20c9e6861
child 14205 1bdce164eb72
--- a/hedgewars/uGearsUtils.pas	Sat Nov 10 20:58:00 2018 +0100
+++ b/hedgewars/uGearsUtils.pas	Sat Nov 10 21:15:42 2018 +0100
@@ -153,8 +153,7 @@
                 gtTarget,
                 gtFlame,
                 gtKnife,
-                gtExplosives: begin //,
-                //gtStructure: begin
+                gtExplosives: begin
 // Run the calcs only once we know we have a type that will need damage
                         tdX:= Gear^.X-fX;
                         tdY:= Gear^.Y-fY;
@@ -330,7 +329,6 @@
 			end
 	end
     end else
-    //else if Gear^.Kind <> gtStructure then // not gtHedgehog nor gtStructure
         Gear^.Hedgehog:= AttackerHog;
     inc(Gear^.Damage, Damage);
 
@@ -1218,8 +1216,7 @@
             gtKnife,
             gtCase,
             gtTarget,
-            gtExplosives: begin//,
-//            gtStructure: begin
+            gtExplosives: begin
 //addFileLog('ShotgunShot radius: ' + inttostr(Gear^.Radius) + ', t^.Radius = ' + inttostr(t^.Radius) + ', distance = ' + inttostr(dist) + ', dmg = ' + inttostr(dmg));
                     dmg:= 0;
                     r:= Gear^.Radius + t^.Radius;
@@ -1351,8 +1348,7 @@
             gtKnife,
             gtTarget,
             gtCase,
-            gtExplosives: //,
-            //gtStructure:
+            gtExplosives:
             begin
             if (Ammo^.Kind in [gtFirePunch, gtKamikaze]) and (Gear^.Kind <> gtSMine) then
                 PlaySound(sndFirePunchHit);