Don't play timer countdown sounds if in ready phase
authorWuzzy <Wuzzy2@mail.ru>
Mon, 03 Sep 2018 00:53:44 +0200
changeset 13748 1a26c472f5ef
parent 13747 be265ab8a4fb
child 13749 52959f686082
Don't play timer countdown sounds if in ready phase
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Mon Sep 03 00:48:51 2018 +0200
+++ b/hedgewars/uGears.pas	Mon Sep 03 00:53:44 2018 +0200
@@ -450,7 +450,7 @@
         if (cHedgehogTurnTime >= 10000)
         and (CurrentHedgehog^.Gear <> nil)
         and ((CurrentHedgehog^.Gear^.State and gstAttacked) = 0)
-        and (not isGetAwayTime) then
+        and (not isGetAwayTime) and (ReadyTimeLeft = 0) then
             if TurnTimeLeft = 5000 then
                 PlaySoundV(sndHurry, CurrentTeam^.voicepack)
             else if TurnTimeLeft = 4000 then