From eabeb3d4aa03ce7cb1794910f3adf1ae248e62db Mon Sep 17 00:00:00 2001 From: Jdog Date: Wed, 19 Aug 2020 19:22:02 -0700 Subject: [PATCH] Revise func_802B7000 using angle as left value --- src/code_e20eb0.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/code_e20eb0.c b/src/code_e20eb0.c index 110f8d19cf..7789386266 100644 --- a/src/code_e20eb0.c +++ b/src/code_e20eb0.c @@ -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;