From: PatR Date: Sun, 1 Mar 2020 00:44:48 +0000 (-0800) Subject: hard quit vs botl X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95385cfc40d25b376644dfcd42f6864abe24e5ba;p=nethack hard quit vs botl For Really quit? [yn] y Dump core? [ynq] q skip the final status update. Noticeable when debugging and some status breakpoints are set. --- diff --git a/src/end.c b/src/end.c index cc328e6eb..a06437323 100644 --- a/src/end.c +++ b/src/end.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 end.c $NHDT-Date: 1581322661 2020/02/10 08:17:41 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.206 $ */ +/* NetHack 3.6 end.c $NHDT-Date: 1583023462 2020/03/01 00:44:22 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.207 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2012. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1093,8 +1093,9 @@ int how; #ifdef HANGUPHANDLING || g.program_state.done_hup #endif - ) { - /* skip status update if panicking or disconnected */ + || (how == QUIT && done_stopprint)) { + /* skip status update if panicking or disconnected + or answer of 'q' to "Really quit?" */ g.context.botl = g.context.botlx = iflags.time_botl = FALSE; } else { /* otherwise force full status update */