summaryrefslogtreecommitdiff
path: root/src/d/d_camera.cpp
diff options
context:
space:
mode:
authorroeming <brother64youyou@gmail.com>2026-01-10 16:38:04 -0500
committerGitHub <noreply@github.com>2026-01-10 23:38:04 +0200
commit562f4d0d650a0516272de407d18891b86dddf7ad (patch)
tree262057c976d891bd52d7bf48a7d4e0b2641b7542 /src/d/d_camera.cpp
parent2d4a8ee46a04ad49313f35c9062f8194de36deb2 (diff)
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
Diffstat (limited to 'src/d/d_camera.cpp')
-rw-r--r--src/d/d_camera.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d/d_camera.cpp b/src/d/d_camera.cpp
index 00acd50d42..6ccde84b20 100644
--- a/src/d/d_camera.cpp
+++ b/src/d/d_camera.cpp
@@ -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) {