From d00624cf531957cc0d303168cc06a6d675b8b436 Mon Sep 17 00:00:00 2001 From: JaceCear <11230293+JaceCear@users.noreply.github.com> Date: Sat, 20 Jul 2024 20:09:26 +0200 Subject: [PATCH] Some cleanup in Pendulum --- include/module_unclear.h | 2 -- src/game/interactables/pendulum.c | 3 --- 2 files changed, 5 deletions(-) diff --git a/include/module_unclear.h b/include/module_unclear.h index 3f2ba499..631990a5 100644 --- a/include/module_unclear.h +++ b/include/module_unclear.h @@ -60,8 +60,6 @@ extern bool32 sub_8020700(Sprite *s, s32 worldX, s32 worldY, s16 p3, Player *p, extern u32 sub_8020874(Sprite *s, s32 worldX, s32 worldY, s16 p3, Player *p, s16 p5, u8 p6); u32 sub_8020950(Sprite *s, s32 worldX, s32 worldY, Player *p, void *param4); -// The first parameter of this might either be an expanded Sprite -// or a different struct entirely? (see func call in src/game/interactables/pendulum.c) void sub_80213B0(Sprite *s, Player *p); void sub_80236C8(void *, u8 p1, void *); diff --git a/src/game/interactables/pendulum.c b/src/game/interactables/pendulum.c index 2baba2fb..48218476 100644 --- a/src/game/interactables/pendulum.c +++ b/src/game/interactables/pendulum.c @@ -265,7 +265,6 @@ void sub_804C008(void) if (IsPointInScreenRect(worldX, worldY) == TRUE) { r8 = 1; } - // _0804C094 if (sub_802C1D0(s->x, s->y) == TRUE) { r8 |= 2; @@ -296,7 +295,6 @@ void sub_804C008(void) TaskDestroy(gCurTask); return; } - // _0804C17C if (r8 & 2) { UpdateSpriteAnimation(s); @@ -307,7 +305,6 @@ void sub_804C008(void) UpdateSpriteAnimation(s2); DisplaySprite(s2); } - // _0804C1A4 for (j = 0; j < (SEGMENTS_PER_PEND * PEND_COUNT); j++) { ps = &pend->sprSegments[j];