diff --git a/doc/fixes34.2 b/doc/fixes34.2 index 7d121dadf..89e3c5313 100644 --- a/doc/fixes34.2 +++ b/doc/fixes34.2 @@ -108,6 +108,7 @@ win32: some code in files.c was incorrectly assuming that a file tiles: high priest tile had a couple bad pixels tiles: bad pixels in Croesus and Yeenoghu tiles FreeBSD: incorrect srandom declaration +unix: don't autosave if hangup occurs after game is over General New Features diff --git a/src/cmd.c b/src/cmd.c index 9309ab474..dfcd57832 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -2336,7 +2336,7 @@ end_of_input() { exit_nhwindows("End of input?"); #ifndef NOSAVEONHANGUP - if (!program_state.done_hup++) + if (!program_state.done_hup++ && program_state.something_worth_saving) (void) dosave0(); #endif clearlocks();