From f2e18ec1717f40ef58f08c5da72cea10285a3a38 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Mon, 21 Sep 2026 22:40:59 +0000 Subject: [PATCH] Match BoardObject stand transition --- src/scene/board/iplBoardObject.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scene/board/iplBoardObject.cpp b/src/scene/board/iplBoardObject.cpp index 1321d18a..786fa362 100644 --- a/src/scene/board/iplBoardObject.cpp +++ b/src/scene/board/iplBoardObject.cpp @@ -15,6 +15,8 @@ #include "utility/iplRBRUtility.h" #include "utility/iplTPLValidity.h" +extern "C" void __ct__Q33ipl4math4VEC2Fff(ipl::math::VEC2*, f32, f32); + // I don't want to keep typing this out lol #define DELETE_PTR_FORCE(x) \ { \ @@ -475,8 +477,9 @@ namespace ipl { f32 dVar2 = nw4r::math::CosFIdx(((mStandData.unk_0x0C * 30.0f + 30.0f) * 0.7111111f)); f32 dVar3 = nw4r::math::SinFIdx(((mStandData.unk_0x0C * 30.0f + 30.0f) * 0.7111111f)); - mBoardPos = - (((mStandData.pos * (f32)(10 - mStandData.unk_0x08)) + (math::VEC2(dVar3 * 160.0f, dVar2 * 160.0f) * mStandData.unk_0x08)) / 10.0f); + math::VEC2 standPos; + __ct__Q33ipl4math4VEC2Fff(&standPos, dVar3 * 160.0f, dVar2 * 160.0f); + mBoardPos = (((mStandData.pos * (f32)(10 - mStandData.unk_0x08)) + (standPos * mStandData.unk_0x08)) / 10.0f); if ((mStandData.unk_0x08 += 1) > 10) { mStandData.init(); -- 2.49.1