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();