# HG changeset patch # User Wuzzy # Date 1544312582 -3600 # Node ID e5eee50bd457421bff0e6dc4461a6bdca36fe5ce # Parent 07c9bdc45115776cebfcb462f634edf945f671d6 Add more fallback sounds diff -r 07c9bdc45115 -r e5eee50bd457 hedgewars/uSound.pas --- a/hedgewars/uSound.pas Sat Dec 08 22:15:49 2018 +0100 +++ b/hedgewars/uSound.pas Sun Dec 09 00:43:02 2018 +0100 @@ -490,11 +490,11 @@ GetFallbackV := sndUhOh else if (snd in [sndDrat, sndBugger]) then GetFallbackV := sndStupid - else if (snd in [sndGonnaGetYou, sndCutItOut, sndLeaveMeAlone]) then + else if (snd in [sndGonnaGetYou, sndIllGetYou, sndJustYouWait, sndCutItOut, sndLeaveMeAlone]) then GetFallbackV := sndRegret else if (snd in [sndOhDear, sndSoLong]) then GetFallbackV := sndByeBye - else if (snd = sndWhatThe) then + else if (snd in [sndWhatThe, sndUhOh]) then GetFallbackV := sndNooo else if (snd = sndRunAway) then GetFallbackV := sndOops @@ -502,6 +502,19 @@ GetFallbackV := sndReinforce else if (snd in [sndAmazing, sndBrilliant, sndExcellent]) then GetFallbackV := sndEnemyDown + else if (snd = sndPoisonCough) then + GetFallbackV := sndPoisonMoan + else if (snd = sndPoisonMoan) then + GetFallbackV := sndPoisonCough + else if (snd = sndFlawless) then + GetFallbackV := sndVictory + else if (snd = sndSameTeam) then + GetFallbackV := sndTraitor + else if (snd = sndMelon) then + GetFallbackV := sndCover + // sndHmm is used for enemy turn start, so sndHello is an "okay" replacement + else if (snd = sndHmm) then + GetFallbackV := sndHello else GetFallbackV := sndNone; end;