Unix code does not always go thru hangup() when EOF is encountered.
There is a similar end_of_input() that is sometimes called instead, which
was missing a test of program_state.something_worth_saving.
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
{
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();