Skip to content

Commit

Permalink
match it_802F1518. also declaration changes for externed functions
Browse files Browse the repository at this point in the history
  • Loading branch information
wyatt-avilla committed Mar 9, 2024
1 parent 0f5633f commit e31c3a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/melee/it/itCommonItems.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ typedef struct MewVars {
typedef struct CoinVars {
s32 x0;
s32 x4;
s32 x8;
s32 xc;
u8 x8_filler[8];
s32 x10;
s32 x14;
} CoinVars;

#endif
12 changes: 6 additions & 6 deletions src/melee/it/items/itcoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ extern f32 it_804DD9C4;
extern f32 it_804DD9D0;

s32 grFigureGet_80219C50(s32); /* extern */
M2C_UNK gm_8017E280(s16, M2C_UNK); /* extern */
M2C_UNK grFigureGet_80219C34(f32); /* extern */
M2C_UNK gm_8017E280(u16, M2C_UNK); /* extern */
M2C_UNK grFigureGet_80219C34(s32); /* extern */
M2C_UNK HSD_GObjObjet_80390A70(Item_GObj*, u8, s32); /* extern */
M2C_UNK HSD_GObjObjet_80390B0C(Item_GObj*); /* extern */
M2C_UNK it_8027B798(Item_GObj*, Vec3*); /* extern */
Expand Down Expand Up @@ -80,10 +80,10 @@ void it_802F1518(Item_GObj* gobj)
{
Item* ip = GET_ITEM(gobj);

if (ip->xDD4_itemVar.capsule.x4 != 0) {
grFigureGet_80219C34(ip->xDD4_itemVar.star.yvel);
} else if ((M2C_FIELD(ip, u8*, 0xDCA) >> 4) & 1) {
gm_8017E280(ip->xDD4_itemVar.capsule.x0, 1);
if (ip->xDD4_itemVar.coin.x4 != 0) {
grFigureGet_80219C34(ip->xDD4_itemVar.coin.x14);
} else if (ip->xDC8_word.flags.x13 != false) {
gm_8017E280(ip->xDD4_itemVar.coin.x0, 1);
it_8027CE44(gobj);
}
it_8027C8B0(gobj);
Expand Down

0 comments on commit e31c3a4

Please sign in to comment.