Match sub_08024C48

This commit is contained in:
Tal Hayon
2022-07-04 01:00:07 +03:00
parent 0e23fba381
commit 8cb4e0b9b0
2 changed files with 24 additions and 37 deletions
+24 -1
View File
@@ -697,7 +697,30 @@ bool32 sub_08024B38(Entity* this) {
return iVar4;
}
ASM_FUNC("asm/non_matching/pesto/sub_08024C48.inc", bool32 sub_08024C48(Entity* this, bool32 unk))
bool32 sub_08024C48(Entity* this, bool32 unk) {
bool32 rv = TRUE;
u32 val;
if (unk) {
if (sub_08049DF4(3)) {
rv = TRUE;
} else {
rv = FALSE;
}
} else {
if (this->child == NULL) {
this->child = NULL;
rv = FALSE;
} else if (this->child->next == NULL) {
this->child = NULL;
rv = FALSE;
} else if (this->child->z.HALF.HI < 0) {
this->child = NULL;
rv = FALSE;
}
}
return rv;
}
void sub_08024C7C(Entity* this) {
this->action = 1;