summaryrefslogtreecommitdiffstats
path: root/adventure/wizard.c
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-3/+3
|
* fix previous, thanks asau@dholland2012-10-121-3/+3
|
* Pass -Wstrict-overflow.dholland2012-10-121-7/+7
|
* Whn ths cd ws wrttn, thr ws bt shrtg nd vwls wr xtrml xpnsv. Nowadays,dholland2009-08-251-5/+5
| | | | | however, we have an ample vowel budget, and bit shortages are a thing of the past (even in a down economy) so spend a bit to improve readability.
* sprinkle staticdholland2009-08-121-4/+6
|
* KNF and WARNS=3jmc2005-07-011-12/+12
|
* 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.
* 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>
* The game adventure(6) handles EOF on standard input ratherhubertf1999-02-101-4/+9
| | | | | | ungracefully. The patch, derived from OpenBSD, improves this handling. Sent in in PR 6556 by Joseph Myers <jsm28@cam.ac.uk>.
* Kill unused parameters, per PR 6023 by Joseph Myers <jsm28@cam.ac.uk>.hubertf1998-08-241-5/+4
|
* Consider leap years, as per PR 5830 by Joseph Myers <jsm28@cam.ac.uk>hubertf1998-07-241-4/+6
|
* KNFifylukem1997-10-111-42/+50
|
* deprecate register, fixup .Nm usagelukem1997-10-101-3/+3
|
* PR/3964: Eric Fischer: Remove dependencies to traditional cpp...christos1997-08-111-16/+26
| | | While I was there add WARNS?= too.
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-2/+3
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* clean up RCS idscgd1995-03-211-0/+6
|
* adventure(6), from 44litejtc1994-10-211-0/+133