Fix PSS's secret star collection

Fixes #56
This commit is contained in:
MysterD 2020-09-11 22:25:49 -07:00
parent 3070d2bfdb
commit 718974c111
1 changed files with 4 additions and 1 deletions

View File

@ -2038,8 +2038,11 @@ void pss_end_slide(struct MarioState *m) {
if (sPssSlideStarted) { if (sPssSlideStarted) {
u16 slideTime = level_control_timer(TIMER_CONTROL_STOP); u16 slideTime = level_control_timer(TIMER_CONTROL_STOP);
if (slideTime < 630) { 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); spawn_default_star(-6358.0f, -4300.0f, 4700.0f);
m->marioObj->oBehParams = tmp;
} }
sPssSlideStarted = FALSE; sPssSlideStarted = FALSE;
} }