Skip to content

Commit 5bac16f

Browse files
authored
Merge pull request #652 from AtariDreams/sub_0806FC24
2 parents f5939d8 + a4450f5 commit 5bac16f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/physics.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -404,14 +404,11 @@ bool32 CheckPlayerProximity(u32 x, u32 y, u32 distX, u32 DistY) {
404404
}
405405

406406
bool32 sub_0806FC24(u32 param_1, u32 param_2) {
407-
register u32 rv asm("r0");
408407
u32 val = sub_08007DD6(param_1, gUnk_080046A4);
409-
if (val) {
410-
rv = (*(gUnk_080047F6 + (val << 2)) >> param_2) & 0x1;
411-
} else {
412-
rv = 0;
413-
}
414-
return rv;
408+
if (!val)
409+
return 0;
410+
411+
return (*(gUnk_080047F6 + (val << 2)) >> param_2) & 0x1;
415412
}
416413

417414
const u16* sub_0806FC50(u32 param_1, u32 param_2) {

0 commit comments

Comments
 (0)