Enable timer warning sounds in hog placement phase
authorWuzzy <almikes@aol.com>
Sun, 01 May 2016 02:36:17 +0200
changeset 11921 b1782491f19c
parent 11920 d7d7f3a07db9
child 11922 d0296b8e60c0
Enable timer warning sounds in hog placement phase
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sat Nov 19 15:03:16 2016 +0100
+++ b/hedgewars/uGears.pas	Sun May 01 02:36:17 2016 +0200
@@ -449,7 +449,6 @@
         //(CurrentHedgehog^.CurAmmoType in [amShotgun, amDEagle, amSniperRifle])
         begin
         if (cHedgehogTurnTime >= 10000)
-        and (not PlacingHogs)
         and (CurrentHedgehog^.Gear <> nil)
         and ((CurrentHedgehog^.Gear^.State and gstAttacked) = 0) then
             if TurnTimeLeft = 5000 then
@@ -464,7 +463,7 @@
                 PlaySound(sndCountdown1);
         if ReadyTimeLeft > 0 then
             begin
-            if (ReadyTimeLeft = 2000) and (LastVoice.snd = sndNone) then
+            if (ReadyTimeLeft = 2000) and (LastVoice.snd = sndNone) and (not PlacingHogs) then
                 AddVoice(sndComeonthen, CurrentTeam^.voicepack);
             dec(ReadyTimeLeft)
             end