tastudio: attempt to fix autorestore during analog editing

This commit is contained in:
feos 2016-11-26 19:49:26 +03:00
parent d3b6364db0
commit 593433106b
1 changed files with 3 additions and 3 deletions

View File

@ -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();
}