From 3b8a9801d361c7593efcf147b8d32d712b83a96f Mon Sep 17 00:00:00 2001 From: Agent X <44549182+Agent-11@users.noreply.github.com> Date: Thu, 25 Aug 2022 20:42:45 -0400 Subject: [PATCH] Fix star sparkles appearing for everyone (#172) When collecting a star, originally the sparkles would appear on everyone even if they didn't collect the star, this has been fixed. --- src/game/mario_actions_cutscene.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game/mario_actions_cutscene.c b/src/game/mario_actions_cutscene.c index 24640edc..a6a04ec8 100644 --- a/src/game/mario_actions_cutscene.c +++ b/src/game/mario_actions_cutscene.c @@ -682,6 +682,7 @@ void general_star_dance_handler(struct MarioState *m, s32 isInWater) { struct MarioState* marioState = &gMarioStates[i]; if (!is_player_active(marioState)) { continue; } if (marioState->marioObj == NULL) { continue; } + if (marioState->playerIndex != m->playerIndex) { continue; } struct Object* celebStar = spawn_object(marioState->marioObj, MODEL_STAR, bhvCelebrationStar); if (m != marioState && celebStar != NULL) { celebStar->header.gfx.node.flags |= GRAPH_RENDER_INVISIBLE;