Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiLko authored Feb 17, 2024
1 parent ba54a26 commit dd53cc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ class $modify(CCScheduler) {
if (recorder.state == state::off) return CCScheduler::update(dt);

if (holdV) holdCooldown++;
if (holdCooldown > (recorder.fps/8) / (240/recorder.fps)) {
if (holdCooldown > (recorder.fps/8) / (recorder.fps/240)) {
if (!Mod::get()->getSettingValue<bool>("disable_frame_stepper")) {
if (Mod::get()->getSettingValue<bool>("frame_stepper")) stepFrame = true;
else {
Expand Down Expand Up @@ -1500,6 +1500,7 @@ class $modify(CCKeyboardDispatcher) {
addButton("disable_fs_btn");
}
}
if (!hold) holdCooldown = 0;
holdV = hold;
}

Expand Down

0 comments on commit dd53cc7

Please sign in to comment.