From 0e5ecdcd73ab94eba28b49cbda111ed7caf88b38 Mon Sep 17 00:00:00 2001 From: Dragorn421 Date: Sun, 20 Mar 2022 01:16:33 +0100 Subject: 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 --- src/code/sys_math_atan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/code/sys_math_atan.c') 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)); } -- cgit v1.2.3