Skip to content

Commit

Permalink
83% of it_802D1204 + cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
wyatt-avilla committed Mar 19, 2024
1 parent d2feb33 commit d27c1cb
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/melee/it/items/itmarumine.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,6 @@ void it_802D1140(Item_GObj* gobj)

void (*it_802D1204(Item_GObj* gobj))(Item_GObj*)
{
const IntVec4* vec;

s32 argx;
s32 argy;
s32 argz;
Expand All @@ -317,14 +315,15 @@ void (*it_802D1204(Item_GObj* gobj))(Item_GObj*)
Item* ip = GET_ITEM(gobj);
HSD_JObj* jobj = GET_JOBJ(gobj);

PAD_STACK(8);

Item_8026AE84(ip, 0x2720, 0x7F, 0x40);
if (M2C_FIELD(&ip->xDC8_word, u8*, 0x2) >> 4 & 1) {
vec = &it_803B86C8;
argx = vec->x;
if (ip->xDC8_word.flags.x13 != false) {
argx = it_803B86C8.x;
other = argx;
argy = vec->y;
argz = vec->z;
it_80274250(gobj, &other, argx, &vec);
argy = it_803B86C8.y;
argz = it_803B86C8.z;
it_80274250(gobj, &other, argx, &it_803B86C8);
}
it_8026B3A8(gobj);
HSD_JObjSetFlagsAll(jobj, 0x10);
Expand Down

0 comments on commit d27c1cb

Please sign in to comment.