Skip to content

Commit 577ce63

Browse files
committed
Fix console not updating before quit
1 parent d170247 commit 577ce63

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/c_console.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include "c_cmds.h"
4545
#include "c_console.h"
4646
#include "c_obituary.h"
47+
#include "d_main.h"
4748
#include "d_deh.h"
4849
#include "doomstat.h"
4950
#include "g_game.h"
@@ -2793,9 +2794,6 @@ bool C_Responder(event_t *ev)
27932794
int i;
27942795
int len;
27952796

2796-
if (quitcmd)
2797-
M_QuitResponse('y');
2798-
27992797
if ((consoleheight < CONSOLEHEIGHT && consoledirection == -1) || messagetoprint)
28002798
return false;
28012799

@@ -2919,6 +2917,12 @@ bool C_Responder(event_t *ev)
29192917
autocomplete = -1;
29202918
inputhistory = -1;
29212919
C_ScrollToBottom();
2920+
2921+
if (quitcmd)
2922+
{
2923+
D_Display();
2924+
M_QuitResponse('y');
2925+
}
29222926
}
29232927
}
29242928
else

0 commit comments

Comments
 (0)