diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2022-03-20 01:16:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-19 20:16:33 -0400 |
| commit | 0e5ecdcd73ab94eba28b49cbda111ed7caf88b38 (patch) | |
| tree | 405f054d2f71ea9addf1b6fefc3973b5f426a4e6 /src/code/sys_math_atan.c | |
| parent | 4f6967b02778e61ed0e9fa471f9ba7d67524c908 (diff) | |
Angle cleanup - `BINANG_TO_RAD`, `BINANG_TO_RAD_ALT` (#1158)
* Run formatter
* Touch up angle macros (parentheses and hex constants)
* Add `BINANG_TO_RAD_ALT`
* Swap `BINANG_TO_RAD` and `BINANG_TO_RAD_ALT`
* Run formatter
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 21152c9f2..4e346da4e 100644 --- a/src/code/sys_math_atan.c +++ b/src/code/sys_math_atan.c @@ -131,5 +131,5 @@ s16 Math_Atan2S(f32 x, f32 y) { } f32 Math_Atan2F(f32 x, f32 y) { - return Math_Atan2S(x, y) * (M_PI / 32768.0f); + return BINANG_TO_RAD(Math_Atan2S(x, y)); } |
