hangup tweaks (trunk only)

Fix a typo in some conditional (NOSAVEONHANGUP) code, and tweak
SAFERHANGUP so that it doesn't defer hangup handling if the game hasn't
started yet or has already finished (it's possible to be waiting for a
--More-- prompt at end of game code before the hangup handler is reset,
so the regular handler could be called in that state).  Also, undefine
SAFERHANGUP if NOSAVEONHANGUP is defined, since there's no point in
deferring hangup for the latter.
This commit is contained in:
nethack.rankin
2007-01-19 03:02:05 +00:00
parent 697ec97812
commit e93303eae4
2 changed files with 8 additions and 4 deletions

View File

@@ -272,7 +272,7 @@ typedef char nhptext;
#if defined(UNIX) || defined(VMS) || defined(__EMX__) || defined(WIN32)
# define HANGUPHANDLING
#endif
#if defined(SAFERHANGUP) && !defined(HANGUPHANDLING)
#if defined(SAFERHANGUP) && (defined(NOSAVEONHANGUP) || !defined(HANGUPHANDLING))
# undef SAFERHANGUP
#endif