Skip to content

Commit

Permalink
Don't show messages during noteshot command.
Browse files Browse the repository at this point in the history
  • Loading branch information
JadingTsunami committed Jun 29, 2024
1 parent 313f50c commit 1d13343
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion prboom2/src/c_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1282,22 +1282,27 @@ static void C_quicksave(char* cmd)
static void NoteShotStateSaveRestore()
{
extern dboolean singletics;
extern int showMessages;
static dboolean saved_singletics = false;
static int saved_showMessages = false;
static dboolean state_saved = false;

if (state_saved) {
singletics = saved_singletics;
showMessages = saved_showMessages;
state_saved = false;
} else {
saved_singletics = singletics;
saved_showMessages = showMessages;
singletics = true;
showMessages = false;
state_saved = true;
}
}

static void C_noteshot(char* cmd)
{
C_schedule(1, NoteShotStateSaveRestore);
NoteShotStateSaveRestore();
C_schedule(4, C_screenshot);
C_schedule(5, C_mapfollow);
C_schedule(7, C_screenshot);
Expand Down

0 comments on commit 1d13343

Please sign in to comment.