Skip to content

Commit

Permalink
match it_80283DFC
Browse files Browse the repository at this point in the history
  • Loading branch information
wyatt-avilla committed Feb 27, 2024
1 parent eb3c5c1 commit 55809a5
Showing 1 changed file with 4 additions and 33 deletions.
37 changes: 4 additions & 33 deletions src/melee/it/items/itheart.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,39 +141,10 @@ void it_80283DD4(HSD_GObj* gobj)

bool it_80283DFC(Item_GObj* gobj)
{
HSD_JObj* child;
f32 rotation_increment;
bool var_r3;
HSD_JObj* jobj = gobj->hsd_obj;
PAD_STACK(8);

if (jobj == NULL) {
child = NULL;
} else {
child = jobj->child;
}
rotation_increment =
((f32*) GET_ITEM(gobj)->xC4_article_data->x4_specialAttributes)[6];
if (child == NULL) {
__assert("jobj.h", 0x411U, "jobj");
}
child->rotate.y += rotation_increment;
if (!(child->flags & JOBJ_MTX_INDEP_SRT)) {
if (child != NULL) {
if (child == NULL) {
__assert("jobj.h", 0x234U, "jobj");
}
var_r3 = false;
if (!(child->flags & JOBJ_USER_DEF_MTX) &&
(child->flags & JOBJ_MTX_DIRTY))
{
var_r3 = true;
}
if (var_r3 == false) {
HSD_JObjSetMtxDirtySub(child);
}
}
}
HSD_JObj* child = HSD_JObjGetChild(GET_JOBJ(gobj));
HeartContainerVars* attrs =
GET_ITEM(gobj)->xC4_article_data->x4_specialAttributes;
HSD_JObjAddRotationY(child, attrs->xDEC);
return false;
}

Expand Down

0 comments on commit 55809a5

Please sign in to comment.