share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua
changeset 12062 1ee28630d424
parent 12061 b68ec446a111
child 12063 1ebda99fd34a
--- 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")