Say sndNutter on round draw
authorWuzzy <Wuzzy2@mail.ru>
Tue, 04 Sep 2018 16:52:51 +0200
changeset 13760 72a8c0d63d80
parent 13759 bef952489e0e
child 13761 6fd56a26e8b8
Say sndNutter on round draw
hedgewars/uTeams.pas
--- a/hedgewars/uTeams.pas	Tue Sep 04 16:26:15 2018 +0200
+++ b/hedgewars/uTeams.pas	Tue Sep 04 16:52:51 2018 +0200
@@ -89,6 +89,10 @@
         AddCaption(GetEventString(eidRoundDraw), capcolDefault, capgrpGameState);
         if SendGameResultOn then
             SendStat(siGameResult, shortstring(trmsg[sidDraw]));
+        if PreviousTeam <> nil then
+            AddVoice(sndNutter, PreviousTeam^.voicepack)
+        else
+            AddVoice(sndNutter, TeamsArray[0]^.voicepack);
         AddGear(0, 0, gtATFinishGame, 0, _0, _0, 3000);
         end
     else // win