From 856f6b3058480329487607c9a11fce1fc7df612b Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Thu, 12 Sep 2024 23:50:54 -0700 Subject: [PATCH] Revert to the old RadianToDegree method Doesn't seem to be getting called, but prefer to maintain the original behavior to reduce uncertainty. --- src/ModelTypes.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/ModelTypes.cpp b/src/ModelTypes.cpp index 8a706d3e37..6ed14f885c 100644 --- a/src/ModelTypes.cpp +++ b/src/ModelTypes.cpp @@ -31,19 +31,8 @@ AnimatedTexture::~AnimatedTexture() RageVector3 RadianToDegree(RageVector3 radian) { - // This is more accurate than the original SM5 implementation, - // but that raises a double-to-float mismatch warning, so this - // prevents that issue from occurring. - // - // A way to implement the original code exactly would be: - // - // RageVector3 radian = { radian.x * (180.0f / PI) }; - - return RageVector3( - static_cast(radian.x * (180.0f / PI)), - static_cast(radian.y * (180.0f / PI)), - static_cast(radian.z * (180.0f / PI)) - ); + constexpr float RAD_TO_DEG = 180.0f / PI; + return radian * RAD_TO_DEG; } void AnimatedTexture::LoadBlank()