diff options
| author | roeming <brother64youyou@gmail.com> | 2026-01-10 16:38:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-10 23:38:04 +0200 |
| commit | 562f4d0d650a0516272de407d18891b86dddf7ad (patch) | |
| tree | 262057c976d891bd52d7bf48a7d4e0b2641b7542 /src/d/actor/d_a_obj_mirror_chain.cpp | |
| parent | 2d4a8ee46a04ad49313f35c9062f8194de36deb2 (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/actor/d_a_obj_mirror_chain.cpp')
| -rw-r--r-- | src/d/actor/d_a_obj_mirror_chain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/d/actor/d_a_obj_mirror_chain.cpp b/src/d/actor/d_a_obj_mirror_chain.cpp index 65cd8c533a..75bb7fd32f 100644 --- a/src/d/actor/d_a_obj_mirror_chain.cpp +++ b/src/d/actor/d_a_obj_mirror_chain.cpp @@ -98,7 +98,7 @@ void dScissorBegin_packet_c::draw() { f32 sp2C = view_p->fovy; f32 sp28 = view_p->aspect; - f32 sp24 = std::tan(0.017453292f * (0.5f * sp2C)); + f32 sp24 = std::tan((M_PI / 180.0f) * (0.5f * sp2C)); f32 sp20, sp1C, sp18, sp14; view_port_class* viewport_p = dComIfGd_getViewport(); |
