mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-18 05:44:53 +00:00
Angle cleanup - RADF_TO_BINANG
(#1155)
* Run formatter * Touch up angle macros (parentheses and hex constants) * Use `RADF_TO_BINANG` more
This commit is contained in:
parent
aab5bc9211
commit
61b864a89c
45 changed files with 120 additions and 128 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue