first round of constants cleanup (#3021)

* first round of constants cleanup

* move m_PI_D definition

* remove compatibility comment

* add future version of angle subtracting with/without cast

* whitespace change to run builds again
This commit is contained in:
roeming
2026-01-10 16:38:04 -05:00
committed by GitHub
parent d5e748beaa
commit 37ec227b3f
30 changed files with 81 additions and 59 deletions
+2 -2
View File
@@ -8498,7 +8498,7 @@ bool dCamera_c::observeCamera(s32 param_0) {
} else if (mPadInfo.mMainStick.mLastPosX <= -0.75f) {
sp50 = -1.0f;
} else {
sp50 = dCamMath::rationalBezierRatio(mPadInfo.mMainStick.mLastPosX * 1.3333334f, dVar8);
sp50 = dCamMath::rationalBezierRatio(mPadInfo.mMainStick.mLastPosX * (4.0f / 3.0f), dVar8);
}
if (mPadInfo.mMainStick.mLastPosY >= 0.75f) {
@@ -8506,7 +8506,7 @@ bool dCamera_c::observeCamera(s32 param_0) {
} else if (mPadInfo.mMainStick.mLastPosY <= -0.75f) {
sp54 = -1.0f;
} else {
sp54 = dCamMath::rationalBezierRatio(mPadInfo.mMainStick.mLastPosY * 1.3333334f, dVar8);
sp54 = dCamMath::rationalBezierRatio(mPadInfo.mMainStick.mLastPosY * (4.0f / 3.0f), dVar8);
}
if (dComIfGs_getOptCameraControl() != 0) {