Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gillou68310 committed Jun 1, 2024
1 parent 98615d3 commit 78e42dd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/code0/37090.c
Original file line number Diff line number Diff line change
Expand Up @@ -1638,8 +1638,15 @@ static void func_8003B5F8(void)
}
}

if ((a == D_8012C470) || (d = 0, (b == D_8012C470)))
if (a == D_8012C470)
{
d = 0;
c = 1;
}
else if (b == D_8012C470)
{
c = 1;
}
}
d = c;

Expand Down
8 changes: 7 additions & 1 deletion src/code0/6D9E0.c
Original file line number Diff line number Diff line change
Expand Up @@ -3346,7 +3346,13 @@ static void func_8007675C(s32 spritenum)
u16 cstat;

spr = &gpSprite[spritenum];
if ((spr->unk16 >= 0) || (spr->unk16 = func_8004D304(spr, 512, 19), unk1C = 0, (spr->unk16 >= 0)))
if (spr->unk16 < 0)
{
spr->unk16 = func_8004D304(spr, 512, 19);
unk1C = 0;
}

if (spr->unk16 >= 0)
{
unk16 = spr->unk16;
i = func_80058600(spr->unk16);
Expand Down

0 comments on commit 78e42dd

Please sign in to comment.