Skip to content

Commit

Permalink
fix: skipinput does not work properly at simulate mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DemoJameson committed Oct 23, 2023
1 parent ab92996 commit 1e9ce83
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,11 @@ private static void DoublePauses(On.Monocle.Scene.orig_BeforeUpdate orig, Scene
orig(self);

if (SimulatePauses && self is Level level) {
if (CanPause(level) && (SkipFrames < 0 || WaitingFrames >= 0)) {
if (SkipFrames < 0 || WaitingFrames >= 0) {
PauseOnCurrentFrame = !PauseOnCurrentFrame;
if (PauseOnCurrentFrame) {
if (PauseOnCurrentFrame && CanPause(level)) {
UpdateTime(level, orig);
}
} else {
PauseOnCurrentFrame = false;
}
}
}
Expand Down

0 comments on commit 1e9ce83

Please sign in to comment.