From f9d69372a11482a277f7455ba14e1055dc82c86d Mon Sep 17 00:00:00 2001 From: roeming Date: Fri, 19 Dec 2025 20:24:18 -0500 Subject: [PATCH] match last function in d_camera.cpp (#2971) Co-authored-by: Cuyler36 --- configure.py | 2 +- include/SSystem/SComponent/c_angle.h | 1 - src/d/d_camera.cpp | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.py b/configure.py index ce02907231f..4a6a774d98c 100755 --- a/configure.py +++ b/configure.py @@ -777,7 +777,7 @@ config.libs = [ Object(MatchingFor(ALL_GCN), "d/d_insect.cpp"), Object(MatchingFor(ALL_GCN), "d/actor/d_a_obj_ss_base.cpp"), Object(MatchingFor(ALL_GCN), "d/actor/d_a_player.cpp"), - Object(NonMatching, "d/d_camera.cpp"), + Object(Equivalent, "d/d_camera.cpp"), # weak func order Object(MatchingFor(ALL_GCN), "d/d_envse.cpp"), Object(MatchingFor(ALL_GCN), "d/d_file_select.cpp"), Object(MatchingFor(ALL_GCN), "d/d_file_sel_warning.cpp"), diff --git a/include/SSystem/SComponent/c_angle.h b/include/SSystem/SComponent/c_angle.h index b82c9a1d11a..40377f42839 100644 --- a/include/SSystem/SComponent/c_angle.h +++ b/include/SSystem/SComponent/c_angle.h @@ -52,7 +52,6 @@ public: bool operator>=(const cSAngle& other) const { return mAngle >= other.mAngle; } bool operator==(const cSAngle& other) const { return mAngle == other.mAngle; } operator s16(void) const { return mAngle; } - void operator=(const cSAngle& other) { mAngle = other.mAngle; } static inline cSAngle getMaxNegative(void) { return cSAngle((s16)-0x8000); } inline void mirrorAtMaxNeg(void) { *this = cSAngle((s16)-0x8000) - *this; } }; diff --git a/src/d/d_camera.cpp b/src/d/d_camera.cpp index bad3ea79bd0..c397cf96a08 100644 --- a/src/d/d_camera.cpp +++ b/src/d/d_camera.cpp @@ -298,7 +298,9 @@ static int specialType[42]; static int Stage; +#if WIDESCREEN_SUPPORT static f32 WideTurnSaving = 0.86f + OREG_F(1); +#endif inline static u32 check_owner_action(u32 param_0, u32 param_1) { return dComIfGp_checkPlayerStatus0(param_0, param_1); @@ -9425,7 +9427,6 @@ int dCamera_c::Reset() { return 1; } -// NONMATCHING - minor regalloc f32 dCamera_c::shakeCamera() { static f32 const wave[] = {0.4f, 0.9f, 2.1f, 3.2f};