From 718974c1116c368ceeb13a2dceda953274816c3f Mon Sep 17 00:00:00 2001 From: MysterD Date: Fri, 11 Sep 2020 22:25:49 -0700 Subject: [PATCH] Fix PSS's secret star collection Fixes #56 --- src/game/interaction.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/interaction.c b/src/game/interaction.c index e1b608a4..129fa822 100644 --- a/src/game/interaction.c +++ b/src/game/interaction.c @@ -2038,8 +2038,11 @@ void pss_end_slide(struct MarioState *m) { if (sPssSlideStarted) { u16 slideTime = level_control_timer(TIMER_CONTROL_STOP); if (slideTime < 630) { - //m->marioObj->oBehParams = (1 << 24); + // PSS secret star uses oBehParams to spawn + s32 tmp = m->marioObj->oBehParams; + m->marioObj->oBehParams = (1 << 24); spawn_default_star(-6358.0f, -4300.0f, 4700.0f); + m->marioObj->oBehParams = tmp; } sPssSlideStarted = FALSE; }