Skip to content

Commit

Permalink
phys bypass compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
theyareonit committed Jun 17, 2024
1 parent e6afefc commit 9dcf401
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.1.5

* Improve input precision again

# v1.1.4

* fix duals oops
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"gd": {
"win": "2.206"
},
"version": "v1.1.4",
"version": "v1.1.5",
"id": "syzzi.click_between_frames",
"name": "Click Between Frames",
"developer": "syzzi",
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,9 @@ class $modify(GJBaseGameLayer) {
PlayLayer* pl = PlayLayer::get();
if (pl) {
const float timewarpDivisor = std::max(pl->m_gameState.m_timeWarp, 1.0f);
const int stepCount = ((modifiedDelta * 60.0) / timewarpDivisor) * 4; // not sure if this is different from (delta * 240) / timewarpDivisor
const int stepCount = std::max(1.0, ((modifiedDelta * 60.0) / timewarpDivisor) * 4); // not sure if this is different from (delta * 240) / timewarpDivisor

if (stepCount > 0) updateInputQueueAndTime(stepCount);
if (modifiedDelta > 0.0) updateInputQueueAndTime(stepCount);
else skipUpdate = true;
}

Expand Down

0 comments on commit 9dcf401

Please sign in to comment.