# HG changeset patch # User Wuzzy # Date 1555730064 -7200 # Node ID fba15e2f5e5b8adb38940d98b04e5b7232dff8ab # Parent b7c813dd807d6dfd96170f0db82d6929206f670b Poison taunts: Fall back to Default voice if missing diff -r b7c813dd807d -r fba15e2f5e5b hedgewars/uSound.pas --- a/hedgewars/uSound.pas Fri Apr 19 19:30:26 2019 +0200 +++ b/hedgewars/uSound.pas Sat Apr 20 05:14:24 2019 +0200 @@ -247,8 +247,8 @@ (FileName: 'Droplet3.ogg'; Path: ptCurrTheme; AltPath: ptSounds),// sndDroplet3 (FileName: 'egg.ogg'; Path: ptSounds; AltPath: ptNone),// sndEggBreak (FileName: 'drillgun.ogg'; Path: ptSounds; AltPath: ptNone),// sndDrillRocket - (FileName: 'PoisonCough.ogg'; Path: ptVoices; AltPath: ptNone),// sndPoisonCough - (FileName: 'PoisonMoan.ogg'; Path: ptVoices; AltPath: ptNone),// sndPoisonMoan + (FileName: 'PoisonCough.ogg'; Path: ptVoices; AltPath: ptDefaultVoice),// sndPoisonCough + (FileName: 'PoisonMoan.ogg'; Path: ptVoices; AltPath: ptDefaultVoice),// sndPoisonMoan (FileName: 'BirdyLay.ogg'; Path: ptSounds; AltPath: ptNone),// sndBirdyLay (FileName: 'Whistle.ogg'; Path: ptSounds; AltPath: ptNone),// sndWhistle (FileName: 'beewater.ogg'; Path: ptSounds; AltPath: ptNone),// sndBeeWater @@ -590,7 +590,7 @@ if rwops = nil then begin - s:= cPathz[Soundz[snd].AltPath] + '/' + voicepack^.name + '/' + Soundz[snd].FileName; + s:= cPathz[Soundz[snd].AltPath] + '/' + Soundz[snd].FileName; WriteToConsole(msgLoading + s + ' ... '); rwops := rwopsOpenRead(s); end; diff -r b7c813dd807d -r fba15e2f5e5b hedgewars/uTypes.pas --- a/hedgewars/uTypes.pas Fri Apr 19 19:30:26 2019 +0200 +++ b/hedgewars/uTypes.pas Sat Apr 20 05:14:24 2019 +0200 @@ -45,7 +45,7 @@ TPathType = (ptNone, ptData, ptGraphics, ptThemes, ptCurrTheme, ptConfig, ptTeams, ptMaps, ptMapCurrent, ptDemos, ptSounds, ptGraves, ptFonts, ptForts, ptLocale, ptAmmoMenu, ptHedgehog, ptVoices, ptHats, ptFlags, ptMissionMaps, - ptSuddenDeath, ptButtons, ptShaders); + ptSuddenDeath, ptButtons, ptShaders, ptDefaultVoice); // Available sprites for displaying stuff TSprite = (sprWater, sprCloud, sprBomb, sprBigDigit, sprBigDigitGray, sprBigDigitGreen, diff -r b7c813dd807d -r fba15e2f5e5b hedgewars/uVariables.pas --- a/hedgewars/uVariables.pas Fri Apr 19 19:30:26 2019 +0200 +++ b/hedgewars/uVariables.pas Sat Apr 20 05:14:24 2019 +0200 @@ -330,7 +330,8 @@ '/Missions/Maps', // ptMissionMaps '/Graphics/SuddenDeath', // ptSuddenDeath '/Graphics/Buttons', // ptButton - '/Shaders' // ptShaders + '/Shaders', // ptShaders + '/Sounds/voices/Default' // ptDefaultVoice ); var