Skip to content

Commit

Permalink
match it_8028402C
Browse files Browse the repository at this point in the history
  • Loading branch information
wyatt-avilla committed Feb 27, 2024
1 parent 4efb062 commit d964f25
Showing 1 changed file with 8 additions and 41 deletions.
49 changes: 8 additions & 41 deletions src/melee/it/items/itheart.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,47 +178,14 @@ bool it_80284020(Item_GObj* gobj)

void it_80284028(Item_GObj* gobj) {}

void it_8028402C(Item_GObj* arg0)
{
HSD_JObj* temp_r3;
HSD_JObj* var_r31;
s32 temp_cr0_eq;
s32 var_r3;
u32 temp_r4;

temp_r3 = arg0->hsd_obj;
if (temp_r3 == NULL) {
var_r31 = NULL;
} else {
var_r31 = temp_r3->child;
}
it_8026B390(arg0);
HSD_JObjClearFlagsAll(var_r31, 0x10U);
if (var_r31 == NULL) {
__assert(M2C_ERROR(/* unknown instruction: subi $r3, $r13, %sda21(it_804D5210) */), 0x294U, M2C_ERROR(/* unknown instruction: subi $r5, $r13, %sda21(it_804D5218) */));
}
if (var_r31->flags & 0x20000) {
//__assert(M2C_ERROR(/* unknown instruction: subi $r3, $r13,
//%sda21(it_804D5210) */), 0x295U, &it_803F5718);
}
var_r31->rotate.y = it_804DC8A8;
if (!(var_r31->flags & 0x02000000)) {
temp_cr0_eq = var_r31 == NULL;
if (temp_cr0_eq == 0) {
if (temp_cr0_eq != 0) {
__assert(M2C_ERROR(/* unknown instruction: subi $r3, $r13, %sda21(it_804D5210) */), 0x234U, M2C_ERROR(/* unknown instruction: subi $r5, $r13, %sda21(it_804D5218) */));
}
temp_r4 = var_r31->flags;
var_r3 = 0;
if (!(temp_r4 & 0x800000) && (temp_r4 & 0x40)) {
var_r3 = 1;
}
if (var_r3 == 0) {
HSD_JObjSetMtxDirtySub(var_r31);
}
}
}
Item_80268E5C((HSD_GObj*) arg0, 3, 6);
void it_8028402C(Item_GObj* gobj)
{
HSD_JObj* child = HSD_JObjGetChild(GET_JOBJ(gobj));

it_8026B390(gobj);
HSD_JObjClearFlagsAll(child, JOBJ_HIDDEN);
HSD_JObjSetRotationY(child, 0.0F);
Item_80268E5C(gobj, 3, 6);
}

void it_8028412C(Item_GObj* gobj)
Expand Down

0 comments on commit d964f25

Please sign in to comment.