Also play countdown warning sounds with low initial turn time
authorWuzzy <Wuzzy2@mail.ru>
Mon, 10 Dec 2018 19:20:36 +0100
changeset 14410 e72ffa27492d
parent 14409 85008b73e118
child 14411 71359339a493
Also play countdown warning sounds with low initial turn time
hedgewars/uGears.pas
--- 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)