summaryrefslogtreecommitdiffstats
path: root/adventure/save.c
Commit message (Collapse)AuthorAgeFilesLines
* KNF and WARNS=3jmc2005-07-011-8/+6
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Adventure(6) should check for errors (e.g. disk full or quotahubertf1999-07-171-3/+7
| | | | | exceeded) when writing out saved games. Do so! Patch supplied by Joseph Myers <jsm28@cam.ac.uk> in PR 8016
* This patch cleans up the handling of the variable `saved' inhubertf1999-07-161-3/+3
| | | | | | | | | | | | | | | | | | | | | 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>
* constify, per PR 6041 by Joseph Myers <jsm28@cam.ac.uk>hubertf1998-09-131-4/+4
|
* KNFifylukem1997-10-111-102/+99
|
* PR/3964: Eric Fischer: Remove dependencies to traditional cpp...christos1997-08-111-64/+69
| | | While I was there add WARNS?= too.
* clean up RCS idscgd1995-03-211-0/+6
|
* adventure(6), from 44litejtc1994-10-211-0/+184