From 593433106bc8c66435f05b8f6bfd7be23d49c4a7 Mon Sep 17 00:00:00 2001 From: feos Date: Sat, 26 Nov 2016 19:49:26 +0300 Subject: [PATCH] tastudio: attempt to fix autorestore during analog editing --- BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs index 9f7c86b088..823fa71429 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.ListView.cs @@ -551,7 +551,7 @@ namespace BizHawk.Client.EmuHawk _floatTypedValue = ""; _floatEditYPos = e.Y; _floatBackupState = CurrentTasMovie.GetFloatState(_floatEditRow, _floatEditColumn); - _triggerAutoRestore = true; + _triggerAutoRestore = false; //JumpToGreenzone(); // not changing anything yet! } RefreshDialog(); @@ -1106,7 +1106,7 @@ namespace BizHawk.Client.EmuHawk if (_floatBackupState != _floatPaintState) { CurrentTasMovie.SetFloatState(_floatEditRow, _floatEditColumn, _floatBackupState); - _triggerAutoRestore = true; + _triggerAutoRestore = Emulator.Frame > _floatEditRow; JumpToGreenzone(); DoTriggeredAutoRestoreIfNeeded(); } @@ -1161,7 +1161,7 @@ namespace BizHawk.Client.EmuHawk if (value != prev) // Auto-restore { - _triggerAutoRestore = true; + _triggerAutoRestore = Emulator.Frame > _floatEditRow; JumpToGreenzone(); DoTriggeredAutoRestoreIfNeeded(); }