From 15713b18da75983975279ce7c7b262a670e3ecc1 Mon Sep 17 00:00:00 2001 From: syzzi Date: Wed, 10 Jul 2024 03:23:09 +0200 Subject: [PATCH] wave --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b81697f..32fd09b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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); } @@ -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); }