# HG changeset patch # User nemo # Date 1314106379 14400 # Node ID 85336f377479dd1372f19620438653851e0d1299 # Parent 34bb680476d4c105d9c50e331fec584bd18d72d4 restore screwed up test diff -r 34bb680476d4 -r 85336f377479 hedgewars/uSound.pas --- a/hedgewars/uSound.pas Tue Aug 23 09:12:45 2011 -0400 +++ b/hedgewars/uSound.pas Tue Aug 23 09:32:59 2011 -0400 @@ -301,7 +301,7 @@ procedure PlayNextVoice; var i : LongInt; begin - if (not isSoundEnabled) or fastUntilLag or (LastVoice.snd = sndNone) or (lastChan[LastVoice.snd] = -1) or (Mix_Playing(lastChan[LastVoice.snd]) = 0) then exit; + if (not isSoundEnabled) or fastUntilLag or ((LastVoice.snd <> sndNone) and (lastChan[LastVoice.snd] <> -1) and (Mix_Playing(lastChan[LastVoice.snd]) <> 0)) then exit; i:= 0; while (i<8) and (VoiceList[i].snd = sndNone) do inc(i);