--- a/hedgewars/uVariables.pas Thu Mar 08 17:07:14 2018 +0100
+++ b/hedgewars/uVariables.pas Thu Mar 08 18:15:06 2018 +0100
@@ -254,6 +254,8 @@
LuaEndTurnRequested: boolean;
LuaNoEndTurnTaunts: boolean;
+ MaskedSounds : array[TSound] of boolean;
+
LastVoice : TVoice;
mobileRecord: TMobileRecord;
@@ -2640,6 +2642,7 @@
procedure initModule;
var s: shortstring;
i: integer;
+ t: TSound;
begin
// init LastVoice
LastVoice.snd:= sndNone;
@@ -2901,6 +2904,9 @@
LuaEndTurnRequested:= false;
LuaNoEndTurnTaunts:= false;
+ for t:= Low(TSound) to High(TSound) do
+ MaskedSounds[t]:= false;
+
UIDisplay:= uiAll;
LocalMessage:= 0;