Skip to content

Commit

Permalink
Merge pull request #652 from AtariDreams/sub_0806FC24
Browse files Browse the repository at this point in the history
  • Loading branch information
hytopoulos committed Dec 17, 2023
2 parents f5939d8 + a4450f5 commit 5bac16f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/physics.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,14 +404,11 @@ bool32 CheckPlayerProximity(u32 x, u32 y, u32 distX, u32 DistY) {
}

bool32 sub_0806FC24(u32 param_1, u32 param_2) {
register u32 rv asm("r0");
u32 val = sub_08007DD6(param_1, gUnk_080046A4);
if (val) {
rv = (*(gUnk_080047F6 + (val << 2)) >> param_2) & 0x1;
} else {
rv = 0;
}
return rv;
if (!val)
return 0;

return (*(gUnk_080047F6 + (val << 2)) >> param_2) & 0x1;
}

const u16* sub_0806FC50(u32 param_1, u32 param_2) {
Expand Down

0 comments on commit 5bac16f

Please sign in to comment.