Skip to content

Commit

Permalink
x2 prefix increment in it_802CE0C4
Browse files Browse the repository at this point in the history
  • Loading branch information
wyatt-avilla committed Mar 27, 2024
1 parent eae1158 commit c1a78b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/melee/it/items/ithassam.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,12 @@ bool it_802CE0C4(HSD_GObj* gobj)
ip->xDD4_itemVar.hassam.x68 += 0.017453292F * (0xB4 / attr->x20);
HSD_JObjSetRotationY(jobj, ip->xDD4_itemVar.hassam.x68);

ip->xDB0_itcmd_var1 += 1;
if (ip->xDB0_itcmd_var1 > (u32) attr->x20) {
if (++ip->xDB0_itcmd_var1 > (u32) attr->x20) {
ip->xDB0_itcmd_var1 = 0;
}
}

ip->xD44_lifeTimer -= 1.0F;
if (ip->xD44_lifeTimer < 0.0F) {
if (--ip->xD44_lifeTimer < 0.0F) {
if (ip->xDAC_itcmd_var0 != 0) {
it_802CE400(gobj);
} else {
Expand Down

0 comments on commit c1a78b7

Please sign in to comment.