Skip to content

Commit

Permalink
Doom & Heretic: suppress pause when a new game is started (#1209)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Greffrath <fabian@greffrath.com>
  • Loading branch information
JNechaevsky and fabiangreffrath authored Jul 25, 2024
1 parent 495d78d commit 94bcf7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/doom/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,8 @@ void G_BuildTiccmd (ticcmd_t* cmd, int maketic)
}

// special buttons
if (sendpause)
// [crispy] suppress pause when a new game is started
if (sendpause && gameaction != ga_newgame)
{
sendpause = false;
// [crispy] ignore un-pausing in menus during demo recording
Expand Down
3 changes: 2 additions & 1 deletion src/heretic/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,8 @@ void G_BuildTiccmd(ticcmd_t *cmd, int maketic)
//
// special buttons
//
if (sendpause)
// [crispy] suppress pause when a new game is started
if (sendpause && gameaction != ga_newgame)
{
sendpause = false;
cmd->buttons = BT_SPECIAL | BTS_PAUSE;
Expand Down

0 comments on commit 94bcf7e

Please sign in to comment.