Dont show Hold to Retry HUD when using Pause/Break key

This commit is contained in:
mazmazz 2018-11-21 11:10:18 -05:00
parent 8a9c10e633
commit 2acad7ad86
3 changed files with 4 additions and 1 deletions

View file

@ -1653,6 +1653,7 @@ void G_DoLoadLevel(boolean resetplayer)
}
INT32 pausedelay = 0;
boolean pausebreakkey = false;
static INT32 camtoggledelay, camtoggledelay2 = 0;
//
@ -1805,6 +1806,7 @@ boolean G_Responder(event_t *ev)
{
if (modeattacking && !demoplayback && (gamestate == GS_LEVEL))
{
pausebreakkey = (ev->data1 == KEY_PAUSE);
if (menuactive || pausedelay < 0 || leveltime < 2)
return true;

View file

@ -54,6 +54,7 @@ extern INT32 gameovertics;
extern tic_t timeinmap; // Ticker for time spent in level (used for levelcard display)
extern INT16 rw_maximums[NUM_WEAPONS];
extern INT32 pausedelay;
extern boolean pausebreakkey;
// used in game menu
extern consvar_t cv_tutorialprompt;

View file

@ -1132,7 +1132,7 @@ void HU_Drawer(void)
V_DrawCenteredString(BASEVIDWIDTH/2, 180, V_YELLOWMAP | V_ALLOWLOWERCASE, resynch_text);
}
if (modeattacking && pausedelay > 0)
if (modeattacking && pausedelay > 0 && !pausebreakkey)
{
INT32 strength = ((pausedelay - 1 - NEWTICRATE/2)*10)/(NEWTICRATE/3);
INT32 y = hudinfo[HUD_LIVES].y - 13;