hedgewars/uGearsUtils.pas
branch0.9.24
changeset 13550 d42237d16acf
parent 13318 9071600f7b22
child 13568 470982c05f7e
--- a/hedgewars/uGearsUtils.pas	Tue Jul 24 19:34:04 2018 +0200
+++ b/hedgewars/uGearsUtils.pas	Tue Jul 24 20:07:58 2018 +0200
@@ -516,12 +516,13 @@
     // adjust water impact sound based on gear speed and density
     hwTmp:= hwAbs(Gear^.Density * speed);
 
-    if hwTmp > _1 then
-        PlaySound(sndSplash)
-    else if hwTmp > _0_5 then
-        PlaySound(sndSkip)
-    else if hwTmp > _0_0002 then  // arbitrary sanity cutoff.  mostly for airmines
-        PlaySound(sndDroplet2);
+    if (numDroplets < maxDroplets) then
+        if hwTmp > _1 then
+            PlaySound(sndSplash)
+        else if hwTmp > _0_5 then
+            PlaySound(sndSkip)
+        else if hwTmp > _0_0002 then  // arbitrary sanity cutoff.  mostly for airmines
+            PlaySound(sndDroplet2);
     end;