diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2023-04-18 13:34:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-18 16:34:58 -0400 |
| commit | 823746d49530318331f29af92fa924a15f2482a1 (patch) | |
| tree | 2931bf8e06b9e1d2ef13774e3fb2b25ac3b4d0fa /src/code/sys_math_atan.c | |
| parent | a67d086addc1d0e226c28cadf58dda5e637d58ba (diff) | |
Angle Conversions (#1216)
* Angle Conversions
* Format
* namefixer
* Renames in ObjHsStump_Appear
* Format
* once more
* Explicit cast in EnSsh
* Update src/overlays/actors/ovl_En_Fishing/z_en_fishing.c
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
---------
Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com>
Diffstat (limited to 'src/code/sys_math_atan.c')
| -rw-r--r-- | src/code/sys_math_atan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/sys_math_atan.c b/src/code/sys_math_atan.c index 72383b6b9..ef05676f5 100644 --- a/src/code/sys_math_atan.c +++ b/src/code/sys_math_atan.c @@ -127,7 +127,7 @@ s16 Math_Atan2S(f32 y, f32 x) { } f32 Math_Atan2F(f32 y, f32 x) { - return Math_Atan2S(y, x) * (M_PI / 0x8000); + return BINANG_TO_RAD(Math_Atan2S(y, x)); } // Match the OoT implementation of Math_Atan2S |
