diff --git a/changelog.md b/changelog.md index 18f9691..fb7044e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +# v1.1.20 + +* bandaid fix for upward slopes cuz whatever + # v1.1.19 * Fix delayed inputs on blocks moving downward diff --git a/mod.json b/mod.json index 7ed7a2a..b7ce8eb 100644 --- a/mod.json +++ b/mod.json @@ -3,7 +3,7 @@ "gd": { "win": "2.206" }, - "version": "v1.1.19", + "version": "v1.1.20", "id": "syzzi.click_between_frames", "name": "Click Between Frames", "developer": "syzzi", diff --git a/src/main.cpp b/src/main.cpp index 113661d..b81697f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -374,8 +374,6 @@ class $modify(CCDirector) { } }; -float p1CollisionDelta; -float p2CollisionDelta; bool actualDelta; class $modify(GJBaseGameLayer) { @@ -457,10 +455,8 @@ class $modify(PlayerObject) { if (p1NotBuffering) { PlayerObject::update(newTimeFactor); if (!step.endStep) { - p1CollisionDelta = newTimeFactor; if (firstLoop) this->m_isOnGround = p1StartedOnGround; // this fixes delayed inputs on platforms moving down for some reason if (!this->m_isOnSlope) pl->checkCollisions(this, 0.0f, true); - else pl->checkCollisions(this, 0.01f, true); // troll PlayerObject::updateRotation(newTimeFactor); newResetCollisionLog(this); } @@ -473,10 +469,8 @@ class $modify(PlayerObject) { if (p2NotBuffering) { p2->update(newTimeFactor); if (!step.endStep) { - p2CollisionDelta = newTimeFactor; if (firstLoop) p2->m_isOnGround = p2StartedOnGround; if (!p2->m_isOnSlope) pl->checkCollisions(p2, 0.0f, true); - else pl->checkCollisions(p2, 0.01f, true); p2->updateRotation(newTimeFactor); newResetCollisionLog(p2); }