hedgewars/uGearsHandlersMess.pas
changeset 11771 abcdb7bc2620
parent 11703 e86feecadced
parent 11770 10860d4bca22
child 11863 38fd32724a61
--- a/hedgewars/uGearsHandlersMess.pas	Thu Apr 28 20:28:53 2016 +0200
+++ b/hedgewars/uGearsHandlersMess.pas	Thu Apr 28 21:15:08 2016 +0200
@@ -6244,8 +6244,6 @@
         if TestCollisionXwithGear(Gear, 1)  <> 0 then ox:=  1;
         if TestCollisionXwithGear(Gear, -1) <> 0 then ox:= -1;
         if TestCollisionYwithGear(Gear, 1)  <> 0 then oy:=  1;
-        if Gear^.Health > 0 then
-            PlaySound(sndRopeAttach);
 
         la:= _10000;
         if (ox <> 0) or (oy <> 0) then
@@ -6255,6 +6253,9 @@
             // debug for when we couldn't get an angle
             //AddVisualGear(hwRound(Gear^.X), hwRound(Gear^.Y), vgtSmokeWhite);
 *)
+        if Gear^.Health > 0 then
+            PlaySound(Gear^.ImpactSound);
+
             Gear^.DirAngle:= DxDy2Angle(Gear^.dX, Gear^.dY) + (random(30)-15);
             if (Gear^.dX.isNegative and Gear^.dY.isNegative) or
              ((not Gear^.dX.isNegative) and (not Gear^.dY.isNegative)) then Gear^.DirAngle:= Gear^.DirAngle-90;