summaryrefslogtreecommitdiff
path: root/src/code_80983D8.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2022-01-20 15:26:19 -0800
committerGitHub <noreply@github.com>2022-01-20 15:26:19 -0800
commit408fe77d7b9440d7eb5d46eda5f920572d516d67 (patch)
tree38953616b74da130bd832635bed1c605d4b0e322 /src/code_80983D8.c
parent3cdde2a92a187d437dc7d24273177b59ab5b9511 (diff)
parentc5cd6e137fbad180a21ec24a50fde76633db0c20 (diff)
Merge pull request #93 from AnonymousRandomPerson/master
More AI decomp
Diffstat (limited to 'src/code_80983D8.c')
-rw-r--r--src/code_80983D8.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/code_80983D8.c b/src/code_80983D8.c
deleted file mode 100644
index 25c57d2..0000000
--- a/src/code_80983D8.c
+++ /dev/null
@@ -1,52 +0,0 @@
-#include "global.h"
-
-extern u32 gUnknown_8115E94[5][3]; // NOTE: Factor of two difference in array sizes
-
-s32 CalculateFacingDir(short *param_1,short *param_2)
-{
- s32 uVar1;
- s32 uVar2;
- s32 uVar3;
-
- uVar3 = param_2[0] - param_1[0];
- uVar2 = param_2[1] - param_1[1];
- if ((uVar3 == 0) && (uVar2 == 0)) {
- uVar1 = 0;
- }
- else {
- if (0 < uVar3) {
- uVar3 = 1;
- }
- if (0 < uVar2) {
- uVar2 = 1;
- }
- if (-1 >= uVar3) {
- uVar3 = -1;
- }
- if (-1 >= uVar2) {
- uVar2 = -1;
- }
- uVar1 = gUnknown_8115E94[(uVar2 + 1)][(uVar3 + 1)];
- }
- return uVar1;
-}
-
-s32 GetMaxPositionDifference(short param_1[],short param_2[])
-{
- s32 diff_index1;
- s32 diff_index0;
-
- diff_index0 = param_1[0] - param_2[0];
- if (diff_index0 < 0) {
- diff_index0 = -diff_index0;
- }
- diff_index1 = param_1[1] - param_2[1];
- if (diff_index1 < 0) {
- diff_index1 = -diff_index1;
- }
- if (diff_index1 < diff_index0) {
- diff_index1 = diff_index0;
- }
- return diff_index1;
-}
-