hedgewars/uStats.pas
changeset 14037 bf8b7c166b3c
parent 14035 ecfd13128100
child 14038 1ac129df8e5b
--- a/hedgewars/uStats.pas	Sun Oct 28 14:08:13 2018 +0100
+++ b/hedgewars/uStats.pas	Tue Oct 30 23:08:43 2018 +0100
@@ -299,7 +299,15 @@
             // 2. complaining about getting attacked too often
             // 3. threatening enemy with retaliation
             if CurrentHedgehog^.stats.GotRevenge then
-                AddVoice(sndRevenge, CurrentHedgehog^.Team^.voicepack)
+                begin
+                AddVoice(sndRevenge, CurrentHedgehog^.Team^.voicepack);
+                // If revenge taunt was added, one of the following voices is
+                // added as fallback (4th param), in case of a missing Revenge sound file.
+                if random(2) = 0 then
+                    AddVoice(sndRegret, vpHurtEnemy, false, true)
+                else
+                    AddVoice(sndGonnaGetYou, vpHurtEnemy, false, true);
+                end
             else
                 if LeaveMeAlone then
                     if random(2) = 0 then