From 2fd452059b1b0fcc20f256aa773a310be0d30f62 Mon Sep 17 00:00:00 2001 From: MysterD Date: Wed, 11 May 2022 18:22:40 -0700 Subject: [PATCH] Make red coin star spawn on late join --- src/game/behaviors/spawn_star.inc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/behaviors/spawn_star.inc.c b/src/game/behaviors/spawn_star.inc.c index e3000cf7..7c5fc026 100644 --- a/src/game/behaviors/spawn_star.inc.c +++ b/src/game/behaviors/spawn_star.inc.c @@ -254,7 +254,6 @@ void bhv_hidden_red_coin_star_init(void) { network_init_object_field(o, &o->oPosX); network_init_object_field(o, &o->oPosY); network_init_object_field(o, &o->oPosZ); - network_init_object_field(o, &o->oTimer); } } } @@ -268,7 +267,7 @@ void bhv_hidden_red_coin_star_loop(void) { break; case 1: - if (o->oTimer > 2) { + if (o->oTimer == 3) { struct Object *obj = spawn_red_coin_cutscene_star(o->oPosX, o->oPosY, o->oPosZ); if (obj != NULL) { if (o->oHiddenStarLastInteractedObject == &gMarioStates[0]) { @@ -278,7 +277,7 @@ void bhv_hidden_red_coin_star_loop(void) { } spawn_mist_particles(); } - o->activeFlags = ACTIVE_FLAG_DEACTIVATED; + network_send_object(o); } break; }