summaryrefslogtreecommitdiff
path: root/src/code/z_path.c
diff options
context:
space:
mode:
authorDragorn421 <Dragorn421@users.noreply.github.com>2022-03-13 19:46:46 +0100
committerGitHub <noreply@github.com>2022-03-13 14:46:46 -0400
commit61b864a89ce9a98c1280c13ae818fd848432cf6c (patch)
treee7fc200721aa76e6575fc027936ee759010182ad /src/code/z_path.c
parentaab5bc9211baa6c1eeaf8cb88402e1ea76367540 (diff)
Angle cleanup - `RADF_TO_BINANG` (#1155)
* Run formatter * Touch up angle macros (parentheses and hex constants) * Use `RADF_TO_BINANG` more
Diffstat (limited to 'src/code/z_path.c')
-rw-r--r--src/code/z_path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/z_path.c b/src/code/z_path.c
index 8ff42c07a..bfffb2674 100644
--- a/src/code/z_path.c
+++ b/src/code/z_path.c
@@ -27,7 +27,7 @@ f32 Path_OrientAndGetDistSq(Actor* actor, Path* path, s16 waypoint, s16* yaw) {
dx = pointPos->x - actor->world.pos.x;
dz = pointPos->z - actor->world.pos.z;
- *yaw = Math_FAtan2F(dx, dz) * (32768 / M_PI);
+ *yaw = RADF_TO_BINANG(Math_FAtan2F(dx, dz));
return SQ(dx) + SQ(dz);
}