Harden the countdown sound check
authorWuzzy <almikes@aol.com>
Fri, 07 Apr 2017 02:26:12 +0200
changeset 12181 c6984784c9fb
parent 12180 7df59356471e
child 12182 31e98d6baf6b
Harden the countdown sound check
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Fri Apr 07 01:50:49 2017 +0200
+++ b/hedgewars/uGears.pas	Fri Apr 07 02:26:12 2017 +0200
@@ -450,7 +450,8 @@
         begin
         if (cHedgehogTurnTime >= 10000)
         and (CurrentHedgehog^.Gear <> nil)
-        and ((CurrentHedgehog^.Gear^.State and gstAttacked) = 0) then
+        and ((CurrentHedgehog^.Gear^.State and gstAttacked) = 0)
+        and (not isGetAwayTime) then
             if TurnTimeLeft = 5000 then
                 PlaySoundV(sndHurry, CurrentTeam^.voicepack)
             else if TurnTimeLeft = 4000 then