From 5b403c4f8f978af6d4b31aad85521b3656a41816 Mon Sep 17 00:00:00 2001 From: Reonu Date: Thu, 6 May 2021 22:30:37 +0100 Subject: [PATCH] Peach cutscene skip --- src/game/level_update.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/game/level_update.c b/src/game/level_update.c index 8f313c3b..d380d6a2 100644 --- a/src/game/level_update.c +++ b/src/game/level_update.c @@ -1193,19 +1193,14 @@ s32 init_level(void) { if (gCurrentArea != NULL) { reset_camera(gCurrentArea->camera); - if (gCurrDemoInput != NULL) { - set_mario_action(gMarioState, ACT_IDLE, 0); - } else if (!gDebugLevelSelect) { - if (gMarioState->action != ACT_UNINITIALIZED) { - if (save_file_exists(gCurrSaveFileNum - 1)) { - set_mario_action(gMarioState, ACT_IDLE, 0); - } else { - set_mario_action(gMarioState, ACT_INTRO_CUTSCENE, 0); - val4 = 1; - } - } + if (gCurrDemoInput != NULL) { + set_mario_action(gMarioState, ACT_IDLE, 0); + } else if (gDebugLevelSelect == 0) { + if (gMarioState->action != ACT_UNINITIALIZED) { + set_mario_action(gMarioState, ACT_IDLE, 0); } } + } if (val4 != 0) { play_transition(WARP_TRANSITION_FADE_FROM_COLOR, 0x5A, 0xFF, 0xFF, 0xFF);