hedgewars/uGears.pas
changeset 14410 e72ffa27492d
parent 14408 d1c1f899df20
child 14472 8d5034f7cc19
--- a/hedgewars/uGears.pas	Mon Dec 10 19:07:12 2018 +0100
+++ b/hedgewars/uGears.pas	Mon Dec 10 19:20:36 2018 +0100
@@ -542,11 +542,11 @@
     if IsClockRunning() then
         //(CurrentHedgehog^.CurAmmoType in [amShotgun, amDEagle, amSniperRifle])
         begin
-        if (cHedgehogTurnTime >= 10000)
+        if (cHedgehogTurnTime > TurnTimeLeft)
         and (CurrentHedgehog^.Gear <> nil)
         and ((CurrentHedgehog^.Gear^.State and gstAttacked) = 0)
         and (not isGetAwayTime) and (ReadyTimeLeft = 0) then
-            if TurnTimeLeft = 5000 then
+            if (TurnTimeLeft = 5000) and (cHedgehogTurnTime >= 10000) then
                 PlaySoundV(sndHurry, CurrentTeam^.voicepack)
             else if TurnTimeLeft = 4000 then
                 PlaySound(sndCountdown4)