# HG changeset patch # User nemo # Date 1352415905 18000 # Node ID e7869e70db35f965ce2872d0a5450a5d7c8d618c # Parent 851f65004c33ea664f74a387c47c96c1debac51d couple of nots diff -r 851f65004c33 -r e7869e70db35 hedgewars/uSound.pas --- a/hedgewars/uSound.pas Thu Nov 08 15:57:01 2012 -0500 +++ b/hedgewars/uSound.pas Thu Nov 08 18:05:05 2012 -0500 @@ -270,7 +270,7 @@ 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 + 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); @@ -456,7 +456,7 @@ function ChangeVolume(voldelta: LongInt): LongInt; begin ChangeVolume:= 0; - if (not isSoundEnabled) or ((voldelta = 0) and not (cInitVolume = 0)) then + if (not isSoundEnabled) or ((voldelta = 0) and (not (cInitVolume = 0))) then exit; inc(Volume, voldelta); @@ -496,7 +496,7 @@ procedure MuteAudio; begin - if (not isSoundEnabled) then + if not isSoundEnabled then exit; if (isAudioMuted) then