Skip to content

Commit

Permalink
Match ft_800819A8
Browse files Browse the repository at this point in the history
Co-authored-by: freyja <[email protected]>
  • Loading branch information
ribbanya and freyja-lynx-dev committed Oct 2, 2024
1 parent 9f36bae commit a58468b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/melee/ft/ft_0819.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@ void ft_80081938(HSD_GObj* gobj)
fp->dmg.x1930 = fp->dmg.x193c;
}

/// #ft_800819A8
void ft_800819A8(HSD_GObj* gobj)
{
f32 lx, rx;
ftECB* p_var;
u8 unused1[36];
Vec3 sp44;
u8 unused2[56];
Fighter* fp = gobj->user_data;
sp44 = fp->coll_data.cur_topn;
p_var = &fp->coll_data.xA4_ecbCurrCorrect;
lx = p_var->left.x;
rx = p_var->right.x;
fp->dmg.x1930.x = lx + sp44.x;
fp->dmg.x1930.y = rx + sp44.x;
fp->dmg.x1930.z = fp->cur_pos.y + fp->co_attrs.x15C;
}

/// #ft_80081A00

0 comments on commit a58468b

Please sign in to comment.