Credits skip (#50)

Press the start button to skip the credits.
Works during ACT_END_PEACH_CUTSCENE and ACT_CREDITS_CUTSCENE.
This commit is contained in:
Isaac 2022-03-31 14:45:37 +10:00 committed by GitHub
parent 784614347b
commit a9c1c9b4e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -1529,6 +1529,12 @@ void update_mario_inputs(struct MarioState *m) {
#endif
/* End of developer stuff */
if ((m->action == ACT_END_PEACH_CUTSCENE || m->action == ACT_CREDITS_CUTSCENE) && m->controller->buttonPressed & START_BUTTON) {
gCurrActStarNum = 0;
gCurrActNum = 0;
gChangeLevel = 16;
}
if (m->playerIndex == 0) {
if (!localIsPaused && gCameraMovementFlags & CAM_MOVE_C_UP_MODE) {
if (m->action & ACT_FLAG_ALLOW_FIRST_PERSON) {