From 06ed3988c02db0aa60e0b06d90962f69e722b3e5 Mon Sep 17 00:00:00 2001 From: TakaRikka Date: Thu, 9 Apr 2026 16:55:07 -0700 Subject: [PATCH] fix dominion rod cam spinning --- src/d/d_camera.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/d/d_camera.cpp b/src/d/d_camera.cpp index b5583cd93f..de9c9223cf 100644 --- a/src/d/d_camera.cpp +++ b/src/d/d_camera.cpp @@ -5022,7 +5022,11 @@ bool dCamera_c::lockonCamera(s32 param_0) { f32 sp160; cSAngle ang6 = ang3 - ang2; curveWeight = mCamSetup.CurveWeight(); + #if AVOID_UB + f32 sp15C = 0.0f; + #else f32 sp15C; + #endif f32 sp158 = mPadInfo.mCStick.mLastPosX; if (mCamParam.Flag(param_0, 0x40)) { sp158 = 0.0f;