hedgewars/uSound.pas
changeset 14047 006f97a6f6a7
parent 14046 44f20c9e6861
child 14058 38eb5937169e
--- a/hedgewars/uSound.pas	Wed Oct 31 13:35:53 2018 +0100
+++ b/hedgewars/uSound.pas	Wed Oct 31 14:33:43 2018 +0100
@@ -328,7 +328,8 @@
             (FileName:              'Revenge.ogg'; Path: ptVoices; AltPath: ptNone),// sndRevenge
             (FileName:             'Cutitout.ogg'; Path: ptVoices; AltPath: ptNone),// sndCutItOut
             (FileName:         'Leavemealone.ogg'; Path: ptVoices; AltPath: ptNone),// sndLeaveMeAlone
-            (FileName:                 'Ouch.ogg'; Path: ptVoices; AltPath: ptNone) // sndOuch
+            (FileName:                 'Ouch.ogg'; Path: ptVoices; AltPath: ptNone),// sndOuch
+            (FileName:                  'Hmm.ogg'; Path: ptVoices; AltPath: ptNone) // sndHmm
             );
 
 
@@ -501,6 +502,14 @@
         GetFallbackV := sndReinforce
     else if (snd in [sndAmazing, sndBrilliant, sndExcellent]) then
         GetFallbackV := sndEnemyDown
+    // Hmm is for enemy turn start
+    else if snd = sndHmm then
+        // these are not ideal fallbacks, but those were the voices which were used in older versions
+        // for enemy turn start
+        if random(2) = 0 then
+            GetFallbackV := sndIllGetYou
+        else
+            GetFallbackV := sndJustYouWait
     else
         GetFallbackV := sndNone;
 end;