diff options
| author | Dragorn421 <Dragorn421@users.noreply.github.com> | 2022-03-13 19:46:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-13 14:46:46 -0400 |
| commit | 61b864a89ce9a98c1280c13ae818fd848432cf6c (patch) | |
| tree | e7fc200721aa76e6575fc027936ee759010182ad /src/code/z_path.c | |
| parent | aab5bc9211baa6c1eeaf8cb88402e1ea76367540 (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.c | 2 |
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); } |
