share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
changeset 15409 0e3bf53dfe47
parent 15408 e347c3508f95
child 15415 8504fee3b601
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Sun Sep 15 15:54:43 2019 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Sun Sep 15 16:04:11 2019 +0200
@@ -774,6 +774,10 @@
         AddAmmo(CurrentHedgehog, amAirAttack, 0)
         gTimer = 0
 
+        SetSoundMask(sndStupid, false)
+        SetSoundMask(sndBugger, false)
+        SetSoundMask(sndDrat, false)
+
         -- Remember ammo delays for later
         if ammoDelays == nil then
                 ammoDelays = {}
@@ -953,7 +957,11 @@
 
                                 AddCaption(string.format(loc("Time: %.1fs"), (trackTime/1000)),GetClanColor(GetHogClan(CurrentHedgehog)),capgrpMessage2)
 
+				-- Track completed, all waypoints touched
                                 if (CheckWaypoints() == true) then
+                                        SetSoundMask(sndStupid, true)
+                                        SetSoundMask(sndBugger, true)
+                                        SetSoundMask(sndDrat, true)
                                         AdjustScores()
                                         SetEffect(CurrentHedgehog, heInvulnerable, 1)
                                         DisableTumbler()