# HG changeset patch # User nemo # Date 1321208336 18000 # Node ID eca20f8990e2662bda072628569c2003745458a1 # Parent 37bb74f0dae99f8555e6b7e6c75ab0fe4e3a25dc Clear all other sounds before playing flawless victory / victory diff -r 37bb74f0dae9 -r eca20f8990e2 hedgewars/uSound.pas --- a/hedgewars/uSound.pas Sun Nov 13 13:05:19 2011 -0500 +++ b/hedgewars/uSound.pas Sun Nov 13 13:18:56 2011 -0500 @@ -287,6 +287,13 @@ var i : LongInt; begin if (not isSoundEnabled) or fastUntilLag or ((LastVoice.snd = snd) and (LastVoice.voicepack = voicepack)) then exit; + if (snd = sndVictory) or (snd = sndFlawless) then + begin + for i:= 1 to Succ(chanTPU) do StopSound(i); + for i:= 0 to 7 do VoiceList[i].snd:= sndNone; + LastVoice.snd:= sndNone; + end; + i:= 0; while (i<8) and (VoiceList[i].snd <> sndNone) do inc(i);