mirror of
https://github.com/pret/pmd-red.git
synced 2026-10-01 07:20:32 -04:00
ground_effect: Decompile sub_80ACD84 -> GroundEffect_Find
Co-authored-by: Seth Barberee <seth.barberee@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user