hedgewars/uSound.pas
changeset 7980 7f8df51553a7
parent 7896 67217e6108fd
child 7984 619a399bece8
--- a/hedgewars/uSound.pas	Mon Nov 05 22:20:20 2012 -0500
+++ b/hedgewars/uSound.pas	Tue Nov 06 08:38:37 2012 -0500
@@ -270,6 +270,8 @@
             s:= UserPathz[Soundz[snd].Path] + '/' + voicepack^.name + '/' + Soundz[snd].FileName;
             if not FileExists(s) then
                 s:= Pathz[Soundz[snd].Path] + '/' + voicepack^.name + '/' + Soundz[snd].FileName;
+            if not FileExists(s) and (snd in [sndFirePunch2, sndFirePunch3, sndFirePunch4, sndFirePunch5, sndFirePunch6]) then
+                s:= Pathz[Soundz[sndFirePunch1].Path] + '/' + voicepack^.name + '/' + Soundz[snd].FileName;
             WriteToConsole(msgLoading + s + ' ');
             voicepack^.chunks[snd]:= Mix_LoadWAV_RW(SDL_RWFromFile(Str2PChar(s), _P'rb'), 1);
             if voicepack^.chunks[snd] = nil then