From b2131287beb302d357c12ea31ead618fe23ed0c9 Mon Sep 17 00:00:00 2001 From: Morilli <35152647+Morilli@users.noreply.github.com> Date: Sat, 7 Sep 2024 14:22:17 +0200 Subject: [PATCH] increment rerecords when recording frames in a TasMovie I believe this is more correct than what was previously done. In particular the lag log and statemanager should always be invalidated at the same time. Maybe the `this.IsRecording()` check should be removed altogether? --- src/BizHawk.Client.Common/movie/tasproj/TasMovie.Editing.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/BizHawk.Client.Common/movie/tasproj/TasMovie.Editing.cs b/src/BizHawk.Client.Common/movie/tasproj/TasMovie.Editing.cs index 95cb602254..a678ab3ce7 100644 --- a/src/BizHawk.Client.Common/movie/tasproj/TasMovie.Editing.cs +++ b/src/BizHawk.Client.Common/movie/tasproj/TasMovie.Editing.cs @@ -25,13 +25,11 @@ namespace BizHawk.Client.Common Changes = true; - LagLog.RemoveFrom(frame); LagLog[frame] = _inputPollable.IsLagFrame; if (this.IsRecording()) { - TasStateManager.InvalidateAfter(frame); - GreenzoneInvalidated(frame); + InvalidateAfter(frame); } if (frame != 0)