diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2026-07-22 20:13:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-22 20:13:31 -0400 |
| commit | 96347ab5028b6ef8ed8f5901f7d16ad51ab99cd4 (patch) | |
| tree | 0eb673b76d240ac04a8805632c8fb4b4d47d71c5 /src/m_Do/m_Do_lib.cpp | |
| parent | bf372802ca81f2c2eb5ae18a5908a2d84e1d3139 (diff) | |
Clean up angle constants and conversions (#1135)
* Add angle conversion constants and macros
* Replace angle literals with hex instead of decimal
Diffstat (limited to 'src/m_Do/m_Do_lib.cpp')
| -rw-r--r-- | src/m_Do/m_Do_lib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/m_Do/m_Do_lib.cpp b/src/m_Do/m_Do_lib.cpp index d1cb15e5..5fa191b3 100644 --- a/src/m_Do/m_Do_lib.cpp +++ b/src/m_Do/m_Do_lib.cpp @@ -43,7 +43,7 @@ void mDoLib_clipper::setup(f32 fovY, f32 aspect, f32 n, f32 f) { mSystemFar = f; mClipper.calcViewFrustum(); - s16 ang = (s16)(fovY * 182.04445f); + s16 ang = DEG2S(fovY); mFovyRate = JMASCos(ang) / JMASSin(ang); } |
