From 294f5eff70b799ea5fc1ac256d70d120dbb897d4 Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Sat, 7 Jan 2023 23:42:50 +0200 Subject: [PATCH] Fix CFlameWarp Former-commit-id: 472e1538ab02a046bd39f7a2b3596737cb262db6 --- src/MetroidPrime/CFlameWarp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MetroidPrime/CFlameWarp.cpp b/src/MetroidPrime/CFlameWarp.cpp index 349ec312..f1ff3723 100644 --- a/src/MetroidPrime/CFlameWarp.cpp +++ b/src/MetroidPrime/CFlameWarp.cpp @@ -90,12 +90,12 @@ void CFlameWarp::ModifyParticles(int particleCount, int stripe, int*, CVector3f* CMaterialList(kMT_ProjectilePassthrough))); if (result.IsValid()) { - const float dist = result.GetPlane().PointToPlaneDist(partPos); + const float dist = result.GetPlane().GetHeight(partPos); if (dist <= 0.f) { partPos -= dist * result.GetPlane().GetNormal(); if (CVector3f::Dot(result.GetPlane().GetNormal(), partVel) < 0.f) { const CVector3f prevStepPos = partPos - partVel; - partPos += (-result.GetPlane().PointToPlaneDist(prevStepPos) / + partPos += (-result.GetPlane().GetHeight(prevStepPos) / CVector3f::Dot(partVel, result.GetPlane().GetNormal()) - 1.f) * partVel;