Racer: No longer play Incoming or Missed sound
authorWuzzy <Wuzzy2@mail.ru>
Thu, 08 Mar 2018 19:14:06 +0100
changeset 13129 991db8fc45eb
parent 13128 11f23afd84f2
child 13130 c8c8f856e236
Racer: No longer play Incoming or Missed sound
ChangeLog.txt
share/hedgewars/Data/Scripts/Multiplayer/Racer.lua
--- a/ChangeLog.txt	Thu Mar 08 19:08:21 2018 +0100
+++ b/ChangeLog.txt	Thu Mar 08 19:14:06 2018 +0100
@@ -54,7 +54,7 @@
  + Control: Always remove TimeBox and Resurrector
  * Battalion: Some texts in the mission panel were wrong and misleading
  * Construction Mode: Remove drill strike if added by weapon scheme (it's broken)
- * Construction Mode: No longer play Incoming voice for building stuff, fix other sound issues
+ * Construction Mode, Racer: No longer play Incoming voice for building stuff, fix other sound issues
  * Capture the Flag: Fix many bugs caused by playing with >2 teams
  * Capture the Flag: Properly place flag when first hog uses kamikaze or TimeBox
  * Capture the Flag: Fix flag not being dropped when carrier uses piano strike
--- a/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Thu Mar 08 19:08:21 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Racer.lua	Thu Mar 08 19:14:06 2018 +0100
@@ -666,6 +666,9 @@
         SendHealthStatsOff()
 	SendAchievementsStatsOff()
 
+        SetSoundMask(sndIncoming, true)
+        SetSoundMask(sndMissed, true)
+
         roundN = 0
         lastRound = TotalRounds
         RoundHasChanged = false
@@ -735,6 +738,7 @@
 
             if placedByUser then
                 AddCaption(string.format(loc("Waypoint placed. Available points remaining: %d"), wpLimit-wpCount))
+                PlaySound(sndPlaced)
             end
         end
     end