Skip to content

Commit

Permalink
prevent another single-frame meme
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Aug 21, 2021
1 parent b9c3c14 commit 673d2a8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/game/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,11 +769,14 @@ static inline void menu_saveload_close(const bool success) {
// if we're in the intro stage, re-open the main menu
if (!stage_data || stage_data->id == STAGE_OPENING_ID) {
menu_open(MENU_TITLE);
} else if (!success) {
// didn't save at save point; prevent the TSC "game saved" message from printing
} else {
// nuke the old "want to save?" prompt
tsc_clear_text();
tsc_stop_event();
player.cond &= ~PLRCOND_USE_BUTTON;
if (!success) {
// didn't save at save point; prevent the TSC "game saved" message from printing
tsc_stop_event();
player.cond &= ~PLRCOND_USE_BUTTON; // don't re-activate the save point immediately
}
}
}

Expand Down

0 comments on commit 673d2a8

Please sign in to comment.