Skip to content

Commit

Permalink
Update packages/core/src/mm/actors/Player.c
Browse files Browse the repository at this point in the history
Co-authored-by: ZoeyZolotova <[email protected]>
  • Loading branch information
Aegiker and ZoeyZolotova authored Oct 29, 2024
1 parent 6cc65d4 commit a2d9039
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions packages/core/src/mm/actors/Player.c
Original file line number Diff line number Diff line change
Expand Up @@ -1961,19 +1961,17 @@ Actor* Player_FindGrottoNearPos(GameState_Play* play, Vec3f* refPos, f32 distanc
/* This function hits all of the active colliders for all of the HakuginPost actors */
/* This seems bad, but because these actors have a somewhat deranged check to make sure you're in front and facing it, I think this is okay. */
void Player_HammerBonkHakuginPost(BgHakuginPost* hakuginPost) {
BgHakuginPostUnkStruct* hakuginPostCrazyStruct = actorAddr(AC_BG_HAKUGIN_POST, 0x80a9e028);
ColliderCylinder* collider;
s32 i;
BgHakuginPostUnkStruct* hakuginPostCrazyStruct = actorAddr(AC_BG_HAKUGIN_POST, 0x80a9e028);
ColliderCylinder* collider;
s32 i;

for (i = 0; i < hakuginPostCrazyStruct->count; i++) {
collider = hakuginPostCrazyStruct->unk_0000[i].collider;
for (i = 0; i < hakuginPostCrazyStruct->count; i++) {
collider = hakuginPostCrazyStruct->unk_0000[i].collider;

/* Force hit one of the Hakugin_Post colliders belonging to the one you just smacked with a hammer */
if (collider != NULL) {
collider->base.acFlags |= AC_HIT;
}
/* Force hit one of the Hakugin_Post colliders belonging to the one you just smacked with a hammer */
if (collider != NULL) {
collider->base.acFlags |= AC_HIT;
}

}
}

Expand Down

0 comments on commit a2d9039

Please sign in to comment.