# HG changeset patch # User sheepluva # Date 1461398045 -7200 # Node ID 0427a9b6457b4ee8b13b0e934640b399834ccb29 # Parent 97a4188fc99e1adb3202fbd2ee8cbd44d22b4980 fix sounds not playing on first play (=load), because function bailed on success, rather than error. introduced in bd9a2f1b0080 , addressing issue 111 diff -r 97a4188fc99e -r 0427a9b6457b hedgewars/uSound.pas --- a/hedgewars/uSound.pas Thu Apr 21 16:03:57 2016 -0400 +++ b/hedgewars/uSound.pas Sat Apr 23 09:54:05 2016 +0200 @@ -425,7 +425,7 @@ s:= cPathz[Soundz[snd].Path] + '/' + Soundz[snd].FileName; WriteToConsole(msgLoading + s + ' '); defVoicepack^.chunks[snd]:= Mix_LoadWAV_RW(rwopsOpenRead(s), 1); - if not SDLCheck(defVoicepack^.chunks[snd] <> nil, 'Mix_LoadWAV_RW', true) then exit; + if SDLCheck(defVoicepack^.chunks[snd] <> nil, 'Mix_LoadWAV_RW', true) then exit; WriteLnToConsole(msgOK); end; lastChan[snd]:= Mix_PlayChannelTimed(-1, defVoicepack^.chunks[snd], 0, -1)