# HG changeset patch # User Wuzzy # Date 1541030846 -3600 # Node ID 38eb5937169e5e70cc629331e84774689969536d # Parent 9c817b2eedaef16dcc5f730697818eba6b0a4a77 Fix taunts playing too fast after a shot Fixes regression introduced by bf14c7c1be02 diff -r 9c817b2eedae -r 38eb5937169e hedgewars/uSound.pas --- a/hedgewars/uSound.pas Thu Nov 01 02:55:22 2018 +0300 +++ b/hedgewars/uSound.pas Thu Nov 01 01:07:26 2018 +0100 @@ -550,7 +550,8 @@ end; function PlaySoundV(snd: TSound; voicepack: PVoicepack; keepPlaying, ignoreMask, soundAsMusic: boolean): boolean; -var s:shortstring; +var s: shortstring; +tempSnd: TSound; rwops: PSDL_RWops; begin s:= cPathz[Soundz[snd].Path] + '/' + voicepack^.name + '/' + Soundz[snd].FileName; @@ -572,9 +573,9 @@ // Fallback taunts if (not pfsExists(s)) then begin - snd := GetFallbackV(snd); - if snd = sndNone then - exit; + tempSnd := GetFallbackV(snd); + if tempSnd <> sndNone then + snd := tempSnd; s:= cPathz[Soundz[snd].Path] + '/' + voicepack^.name + '/' + Soundz[snd].FileName; end; WriteToConsole(msgLoading + s + ' ');