From 70fdad4e7c176e6caed344c5f2f8f9796f2a213a Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 4 Oct 2020 21:26:36 -0700 Subject: [PATCH] Stop time and show star cutscene for everyone Fixes #72 --- src/game/behaviors/spawn_star.inc.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/game/behaviors/spawn_star.inc.c b/src/game/behaviors/spawn_star.inc.c index 7dd93982..42448c21 100644 --- a/src/game/behaviors/spawn_star.inc.c +++ b/src/game/behaviors/spawn_star.inc.c @@ -42,16 +42,14 @@ void bhv_star_spawn_init(void) { o->oVelY = (o->oHomeY - o->oPosY) / 30.0f; o->oForwardVel = o->oStarSpawnDisFromHome / 30.0f; o->oStarSpawnUnkFC = o->oPosY; - if (nearest_mario_state_to_object(o) == &gMarioStates[0]) { - if (o->oBehParams2ndByte == 0 || gCurrCourseNum == COURSE_BBH) - cutscene_object(CUTSCENE_STAR_SPAWN, o); - else - cutscene_object(CUTSCENE_RED_COIN_STAR_SPAWN, o); - gMarioStates[0].freeze = 60; - } + if (o->oBehParams2ndByte == 0 || gCurrCourseNum == COURSE_BBH) + cutscene_object(CUTSCENE_STAR_SPAWN, o); + else + cutscene_object(CUTSCENE_RED_COIN_STAR_SPAWN, o); + gMarioStates[0].freeze = 60; - //set_time_stop_flags(TIME_STOP_ENABLED | TIME_STOP_MARIO_AND_DOORS); - //o->activeFlags |= ACTIVE_FLAG_INITIATED_TIME_STOP; + set_time_stop_flags(TIME_STOP_ENABLED | TIME_STOP_MARIO_AND_DOORS); + o->activeFlags |= ACTIVE_FLAG_INITIATED_TIME_STOP; cur_obj_become_intangible(); }