Add more fallback sounds
authorWuzzy <Wuzzy2@mail.ru>
Sun, 09 Dec 2018 00:43:02 +0100
changeset 14390 e5eee50bd457
parent 14389 07c9bdc45115
child 14391 42776184fc39
Add more fallback sounds
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;