ground_effect: Decompile sub_80ACD84 -> GroundEffect_Find

Co-authored-by: Seth Barberee <seth.barberee@gmail.com>
This commit is contained in:
tgsm
2025-05-28 21:53:10 -05:00
parent e8a8b1c2d7
commit c41cf36a1e
2 changed files with 19 additions and 37 deletions
+19
View File
@@ -139,3 +139,22 @@ void GroundEffect_CancelBlank()
}
}
}
// Unused
s32 GroundEffect_Find(s32 a0_) {
s32 index;
s32 a0;
GroundEffect *ptr;
a0 = (s16)a0_;
index = 0;
ptr = &gGroundEffects[0];
for (; index < 16; index = (s16)(index + 1), ptr++)
{
if (ptr->unk6 == a0)
{
return index;
}
}
return -1;
}