From d3547b15d46d00bc1cb7b0a86c6174a705f45a64 Mon Sep 17 00:00:00 2001 From: Meerkov Date: Wed, 28 Sep 2016 22:02:38 -0700 Subject: [PATCH] Fix bug with Mute Frame Advance It will actually mute when you hold the Frame Advance button. Previously, the setting did nothing. --- BizHawk.Client.EmuHawk/MainForm.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs index 9a0d7477b5..b5b8387de2 100644 --- a/BizHawk.Client.EmuHawk/MainForm.cs +++ b/BizHawk.Client.EmuHawk/MainForm.cs @@ -2691,12 +2691,12 @@ namespace BizHawk.Client.EmuHawk if (Global.ClientControls["Frame Advance"] || PressFrameAdvance || HoldFrameAdvance) { + _runloopFrameadvance = true; // handle the initial trigger of a frame advance if (_frameAdvanceTimestamp == 0) { PauseEmulator(); runFrame = true; - _runloopFrameadvance = true; _frameAdvanceTimestamp = currentTimestamp; } else @@ -2804,8 +2804,8 @@ namespace BizHawk.Client.EmuHawk if (Global.Config.SoundEnabledNormal) atten = Global.Config.SoundVolume / 100.0f; - - if (_runloopFrameadvance && !Global.Config.MuteFrameAdvance) + + if (_runloopFrameadvance && Global.Config.MuteFrameAdvance) { atten = 0; }