NetBSD/games/adventure
hubertf adf74b1e92 This patch cleans up the handling of the variable `saved' in
adventure(6).  The handling of this variable is somewhat confusing,
since it is used for two different purposes (controlling the time
required before a saved game can be restored, and controlling various
aspects of dwarf behaviour); in fact, it is also declared twice in
hdr.h.  Except possibly when saving a game fails, these uses can never
interfere; when used for controlling dwarf behaviour, we always have
saved == -1.  This can be better understood with reference to the
original PDP-10 FORTRAN source (URL in patch, since hdr.h references
the comments of the FORTRAN as still relevant to this version) of
which the C version is a direct translation: the wrong value for
`saved' meant that someone was cheating and had bypassed normal
initialisation.  Saving was done by halting and telling the user to
save their core image, so the question of carrying on after saving
failed to open the output file did not arise.

This patch separates the uses of `saved' into uses of two separate
variables.

Closes PR 8005 by Joseph Myers <jsm28@cam.ac.uk>
1999-07-16 01:38:20 +00:00
..
adventure.6
crc.c The patch below does some minor cleanup of adventure(6): an additional 1999-02-10 00:29:21 +00:00
done.c remove unused function return values (PR#6079 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-13 15:21:36 +00:00
extern.h remove unused function return values (PR#6079 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-13 15:21:36 +00:00
glorkz
hdr.h This patch cleans up the handling of the variable `saved' in 1999-07-16 01:38:20 +00:00
init.c Add __attribute__() to a variable. From PR 6557, after discussion with 1999-02-10 12:38:54 +00:00
io.c The game adventure(6) handles EOF on standard input rather 1999-02-10 00:11:28 +00:00
main.c This patch cleans up the handling of the variable `saved' in 1999-07-16 01:38:20 +00:00
Makefile Find setup-program even w/ obj dirs. 1998-08-01 23:02:35 +00:00
save.c This patch cleans up the handling of the variable `saved' in 1999-07-16 01:38:20 +00:00
setup.c From PR 7985 by Joseph Myers <jsm28@cam.ac.uk>: 1999-07-14 17:21:03 +00:00
subr.c return error on errors (PR#6147 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-14 09:29:08 +00:00
vocab.c return error on errors (PR#6147 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-14 09:29:08 +00:00
wizard.c This patch cleans up the handling of the variable `saved' in 1999-07-16 01:38:20 +00:00