Windows: don't demand keypress on intentional exit

This commit is contained in:
nhmall
2026-05-10 12:10:26 -04:00
parent aa63616118
commit 5cf9086c84
+1 -1
View File
@@ -518,7 +518,7 @@ nethack_exit(int code)
* GUILaunched is defined and set in consoletty.c. * GUILaunched is defined and set in consoletty.c.
*/ */
if (getreturn_enabled) { if (getreturn_enabled && !program_state.exiting) {
raw_print("\n"); raw_print("\n");
if (iflags.window_inited) if (iflags.window_inited)
wait_synch(); wait_synch();