--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua Thu Nov 24 04:15:27 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua Thu Nov 24 04:21:34 2016 +0100
@@ -1484,8 +1484,12 @@
end
- if (TimeLeftCounter % 1000) == 0 and TimeLeft == 5 then
- PlaySound(sndHurry, CurrentHedgehog)
+ if (TimeLeftCounter % 1000) == 0 then
+ if TimeLeft == 5 then
+ PlaySound(sndHurry, CurrentHedgehog)
+ elseif TimeLeft <= 4 and TimeLeft >= 1 then
+ PlaySound(_G["sndCountdown"..TimeLeft])
+ end
end
--WriteLnToConsole("Finished timeleft calculations")