Continental supplies: Fix “Boring” sound being played after continent select
authorWuzzy <Wuzzy2@mail.ru>
Thu, 03 May 2018 15:37:29 +0200
changeset 13362 8a9a723eb185
parent 13361 aabec3d86139
child 13363 544867ac1017
Continental supplies: Fix “Boring” sound being played after continent select
share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Thu May 03 15:30:31 2018 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Thu May 03 15:37:29 2018 +0200
@@ -48,6 +48,8 @@
 
 --Will end the turn + give escape time
 function EndTurnCS(seconds)
+	-- Set attacked state to prevent “Boring” sound to be played
+	SetState(CurrentHedgehog, bor(GetState(CurrentHedgehog), gstAttacked))
 	--set escape time
 	TurnTimeLeft = GetAwayTime*10*seconds
 	if TurnTimeLeft > 0 then