# HG changeset patch # User Wuzzy # Date 1491823844 -7200 # Node ID 9a4831b23cd158fde88d99ea7cd0e1df1ee57f72 # Parent 2de020695c2068f45e71e84d1b7248343729f693 Play different bounce sound for rubber duck diff -r 2de020695c20 -r 9a4831b23cd1 hedgewars/uGearsUtils.pas --- a/hedgewars/uGearsUtils.pas Sun Apr 09 20:54:33 2017 +0200 +++ b/hedgewars/uGearsUtils.pas Mon Apr 10 13:30:44 2017 +0200 @@ -1606,7 +1606,10 @@ Scale:= hwFloat2Float(Gear^.Density * hwAbs(Gear^.dY) + hwAbs(Gear^.dX)) / 1.5; State:= ord(sprBoing) end; - PlaySound(sndMelonImpact, true) + if Gear^.Kind = gtDuck then + PlaySound(sndDuckDrop, true); + else + PlaySound(sndMelonImpact, true) end; function IsHogLocal(HH: PHedgehog): boolean;