summaryrefslogtreecommitdiff
path: root/src/d/d_cam_param.cpp
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-04-24 14:53:58 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-04-24 14:53:58 -0400
commitfa7d4d28965733a680d5d7e00a10485c66a246df (patch)
tree2f49dcae479c9e7b72c276f5cae604a93425ceee /src/d/d_cam_param.cpp
parentce8d17ec0835c9679e54dc7a6700c042825352f9 (diff)
Fix relocation and data value mismatches
Diffstat (limited to 'src/d/d_cam_param.cpp')
-rw-r--r--src/d/d_cam_param.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/d/d_cam_param.cpp b/src/d/d_cam_param.cpp
index 4929fa35..72cd8337 100644
--- a/src/d/d_cam_param.cpp
+++ b/src/d/d_cam_param.cpp
@@ -15,8 +15,7 @@ f32 dCamMath::rationalBezierRatio(f32 x, f32 y) {
/* 800AF4F4-800AF544 .text customRBRatio__8dCamMathFff */
f32 dCamMath::customRBRatio(f32 x, f32 y) {
- /* Nonmatching */
- if (x > 0.7071068f) {
+ if (x > 0.70710677f) {
if (x < 0.0f) {
return -1.0f;
} else {
@@ -24,7 +23,7 @@ f32 dCamMath::customRBRatio(f32 x, f32 y) {
}
}
- return rationalBezierRatio(x * 1.414214f, y);
+ return rationalBezierRatio(x * 1.4142135f, y);
}
/* 800AF544-800AF5A0 .text zoomFovy__8dCamMathFff */