hedgewars/HHHandlers.inc
changeset 2463 34a484b2ddd6
parent 2457 ecf0c7e7995b
child 2464 851b4e47ed2b
equal deleted inserted replaced
2462:fa3ddd1ff2a1 2463:34a484b2ddd6
   299 var s: shortstring;
   299 var s: shortstring;
   300     a: TAmmoType;
   300     a: TAmmoType;
   301 	i: Integer;
   301 	i: Integer;
   302 begin
   302 begin
   303 Gear^.Message:= gm_Destroy;
   303 Gear^.Message:= gm_Destroy;
       
   304 if Gear^.Pos = posCaseAmmo then PlaySound(sndShotgunFire, false, nil)
       
   305 else PlaySound(sndPlaced, false, nil);
   304 case Gear^.Pos of
   306 case Gear^.Pos of
   305        posCaseUtility,
   307        posCaseUtility,
   306        posCaseAmmo: begin
   308        posCaseAmmo: begin
   307                     a:= TAmmoType(Gear^.State);
   309                     a:= TAmmoType(Gear^.State);
   308                     AddAmmo(PHedgehog(HH^.Hedgehog)^, a);
   310                     AddAmmo(PHedgehog(HH^.Hedgehog)^, a);