Skip to content

Commit

Permalink
cutscene: advance cutscene on MENU_ABORT if not interruptible
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Oct 23, 2024
1 parent 5bd284c commit c7d7bc4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cutscenes/cutscene.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,12 @@ static bool cutscene_event(SDL_Event *evt, void *ctx) {
cutscene_advance(st);
}

if(evt->type == MAKE_TAISEI_EVENT(TE_MENU_ABORT) && st->interruptible) {
cutscene_interrupt(st);
if(evt->type == MAKE_TAISEI_EVENT(TE_MENU_ABORT)) {
if(st->interruptible) {
cutscene_interrupt(st);
} else {
cutscene_advance(st);
}
}

return false;
Expand Down

0 comments on commit c7d7bc4

Please sign in to comment.