hedgewars/uGame.pas
changeset 13039 aed4b25ff242
parent 11605 dc8de75747f9
child 13495 f725701ca529
--- 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;