Skip to content

Commit 7359961

Browse files
committed
Show/hide console when doing confirmation message for resetall CCMD
1 parent cd15520 commit 7359961

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/c_cmds.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8203,7 +8203,8 @@ static void resetfunc2(char *cmd, char *parms)
82038203
static void C_VerifyResetAll(const int key)
82048204
{
82058205
messagetoprint = false;
8206-
SDL_StartTextInput();
8206+
C_ShowConsole(false);
8207+
consoleheight = CONSOLEHEIGHT;
82078208

82088209
if (key == 'y')
82098210
{
@@ -8494,6 +8495,7 @@ static void resetallfunc2(char *cmd, char *parms)
84948495
M_snprintf(line2, sizeof(line2), (usingcontroller ? s_PRESSA : s_PRESSYN), selectbutton);
84958496
M_snprintf(resetallstring, sizeof(resetallstring),
84968497
"Are you sure you want to reset all CVARs\nand controls to their defaults?\n\n%s", line2);
8498+
C_HideConsole();
84978499
M_StartMessage(resetallstring, &C_VerifyResetAll, true);
84988500

84998501
SDL_StopTextInput();

0 commit comments

Comments
 (0)