Skip to content

Commit

Permalink
wave
Browse files Browse the repository at this point in the history
  • Loading branch information
theyareonit committed Jul 10, 2024
1 parent 3761dff commit 15713b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ class $modify(PlayerObject) {
PlayerObject::update(newTimeFactor);
if (!step.endStep) {
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);
if (!this->m_isOnSlope || this->m_isDart) pl->checkCollisions(this, 0.0f, true);
PlayerObject::updateRotation(newTimeFactor);
newResetCollisionLog(this);
}
Expand All @@ -470,7 +470,7 @@ class $modify(PlayerObject) {
p2->update(newTimeFactor);
if (!step.endStep) {
if (firstLoop) p2->m_isOnGround = p2StartedOnGround;
if (!p2->m_isOnSlope) pl->checkCollisions(p2, 0.0f, true);
if (!p2->m_isOnSlope || p2->m_isDart) pl->checkCollisions(p2, 0.0f, true);
p2->updateRotation(newTimeFactor);
newResetCollisionLog(p2);
}
Expand Down

0 comments on commit 15713b1

Please sign in to comment.