mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-17 10:11:02 +00:00
Dont show Hold to Retry HUD when using Pause/Break key
This commit is contained in:
parent
8a9c10e633
commit
2acad7ad86
3 changed files with 4 additions and 1 deletions
|
@ -1653,6 +1653,7 @@ void G_DoLoadLevel(boolean resetplayer)
|
||||||
}
|
}
|
||||||
|
|
||||||
INT32 pausedelay = 0;
|
INT32 pausedelay = 0;
|
||||||
|
boolean pausebreakkey = false;
|
||||||
static INT32 camtoggledelay, camtoggledelay2 = 0;
|
static INT32 camtoggledelay, camtoggledelay2 = 0;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -1805,6 +1806,7 @@ boolean G_Responder(event_t *ev)
|
||||||
{
|
{
|
||||||
if (modeattacking && !demoplayback && (gamestate == GS_LEVEL))
|
if (modeattacking && !demoplayback && (gamestate == GS_LEVEL))
|
||||||
{
|
{
|
||||||
|
pausebreakkey = (ev->data1 == KEY_PAUSE);
|
||||||
if (menuactive || pausedelay < 0 || leveltime < 2)
|
if (menuactive || pausedelay < 0 || leveltime < 2)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,7 @@ extern INT32 gameovertics;
|
||||||
extern tic_t timeinmap; // Ticker for time spent in level (used for levelcard display)
|
extern tic_t timeinmap; // Ticker for time spent in level (used for levelcard display)
|
||||||
extern INT16 rw_maximums[NUM_WEAPONS];
|
extern INT16 rw_maximums[NUM_WEAPONS];
|
||||||
extern INT32 pausedelay;
|
extern INT32 pausedelay;
|
||||||
|
extern boolean pausebreakkey;
|
||||||
|
|
||||||
// used in game menu
|
// used in game menu
|
||||||
extern consvar_t cv_tutorialprompt;
|
extern consvar_t cv_tutorialprompt;
|
||||||
|
|
|
@ -1132,7 +1132,7 @@ void HU_Drawer(void)
|
||||||
V_DrawCenteredString(BASEVIDWIDTH/2, 180, V_YELLOWMAP | V_ALLOWLOWERCASE, resynch_text);
|
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 strength = ((pausedelay - 1 - NEWTICRATE/2)*10)/(NEWTICRATE/3);
|
||||||
INT32 y = hudinfo[HUD_LIVES].y - 13;
|
INT32 y = hudinfo[HUD_LIVES].y - 13;
|
||||||
|
|
Loading…
Reference in a new issue