diff -r 356995c8c48b -r aed4b25ff242 hedgewars/uGame.pas --- a/hedgewars/uGame.pas Tue Feb 20 15:37:36 2018 +0100 +++ b/hedgewars/uGame.pas Tue Feb 20 17:52:22 2018 +0100 @@ -93,6 +93,18 @@ s:= ansistring(inttostr(i)); AddCaption(FormatA(trmsg[sidVolume], s), cWhiteColor, capgrpVolume) end + end + else if cMuteToggle then + begin + MuteAudio; + if isAudioMuted then + AddCaption(trmsg[sidMute], cWhiteColor, capgrpVolume) + else + begin + s:= ansistring(inttostr(GetVolumePercent())); + AddCaption(FormatA(trmsg[sidVolume], s), cWhiteColor, capgrpVolume); + end; + cMuteToggle:= false; end; end; PlayNextVoice;