2020-08-04 08:49:11 +02:00
|
|
|
#include "common.h"
|
|
|
|
|
2020-08-19 18:55:52 +02:00
|
|
|
s32 func_802B7000(f32 angle) {
|
|
|
|
s32 angleDiff;
|
|
|
|
|
2020-08-20 04:22:02 +02:00
|
|
|
if (angle >= 270.0f) {
|
2020-08-19 18:55:52 +02:00
|
|
|
angleDiff = 360.0f - angle;
|
2020-08-20 04:22:02 +02:00
|
|
|
} else if (angle >= 180.0f) {
|
2020-08-19 18:55:52 +02:00
|
|
|
angleDiff = angle - 180.0f;
|
2020-08-20 04:22:02 +02:00
|
|
|
} else if (angle >= 90.0f) {
|
2020-08-19 18:55:52 +02:00
|
|
|
angleDiff = 180.0f - angle;
|
|
|
|
} else {
|
|
|
|
angleDiff = angle;
|
|
|
|
}
|
|
|
|
return 0xFF - angleDiff - angleDiff;
|
|
|
|
}
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-08-17 19:44:41 +02:00
|
|
|
INCLUDE_ASM("code_e20eb0", func_802B70B4);
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-08-17 19:44:41 +02:00
|
|
|
INCLUDE_ASM("code_e20eb0", func_802B71C8);
|
2020-08-04 08:49:11 +02:00
|
|
|
|
2020-08-17 19:44:41 +02:00
|
|
|
INCLUDE_ASM("code_e20eb0", func_802B742C);
|