BasicBot - Remove unnecessary usage of Global.Emulator

This commit is contained in:
adelikat 2016-12-04 12:23:44 -06:00
parent 0af5fb50b1
commit 546947041b
1 changed files with 2 additions and 2 deletions

View File

@ -916,7 +916,7 @@ namespace BizHawk.Client.EmuHawk
}
else if (_isBotting)
{
if (Global.Emulator.Frame >= _targetFrame)
if (Emulator.Frame >= _targetFrame)
{
Attempts++;
Frames += FrameLength;
@ -1075,7 +1075,7 @@ namespace BizHawk.Client.EmuHawk
GlobalWin.MainForm.LoadQuickSave(SelectedSlot, false, true); // Triggers an UpdateValues call
_dontUpdateValues = false;
_targetFrame = Global.Emulator.Frame + (int)FrameLengthNumeric.Value;
_targetFrame = Emulator.Frame + (int)FrameLengthNumeric.Value;
GlobalWin.MainForm.UnpauseEmulator();
if (Settings.TurboWhenBotting)