make use of Smaxx latest commit(s) when playing ImpactSounds
authorsheepluva
Wed, 31 Mar 2010 11:34:58 +0000
changeset 3203 e98ac205ba29
parent 3202 b470d7875f23
child 3204 65222383bf7d
make use of Smaxx latest commit(s) when playing ImpactSounds
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Wed Mar 31 11:00:30 2010 +0000
+++ b/hedgewars/GSHandlers.inc	Wed Mar 31 11:34:58 2010 +0000
@@ -242,7 +242,7 @@
 if (Gear^.nImpactSounds > 0) then
     if ((Gear^.Damage <> 0) or ((Gear^.State and (gstCollision or gstMoving)) = (gstCollision or gstMoving))) and
        ((Gear^.dX.QWordValue > _0_1.QWordValue) or (Gear^.dY.QWordValue > _0_1.QWordValue)) then
-        PlaySound(TSound(ord(Gear^.ImpactSound) + LongInt(GetRandom(Gear^.nImpactSounds))));
+        PlaySound(TSound(ord(Gear^.ImpactSound) + LongInt(GetRandom(Gear^.nImpactSounds))), true);
 end;
 
 ////////////////////////////////////////////////////////////////////////////////