mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-29 07:23:01 +00:00
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.
This commit is contained in:
parent
cbc78025f3
commit
1777aa5c51
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue