Revise func_802B7000 using angle as left value

This commit is contained in:
Jdog 2020-08-19 19:22:02 -07:00
parent dd98f7c034
commit eabeb3d4aa

View File

@ -4,11 +4,11 @@
s32 func_802B7000(f32 angle) {
s32 angleDiff;
if (270.0f <= angle) {
if (angle >= 270.0f) {
angleDiff = 360.0f - angle;
} else if (180.0f <= angle) {
} else if (angle >= 180.0f) {
angleDiff = angle - 180.0f;
} else if (90.0f <= angle) {
} else if (angle >= 90.0f) {
angleDiff = 180.0f - angle;
} else {
angleDiff = angle;