summaryrefslogtreecommitdiffstats
path: root/wump/wump.c
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-4/+4
|
* WARNS=5, and make WARNS=5 the default for src/games.dholland2012-06-191-34/+26
|
* reinstate NULL cast by request, where the NULL was being passed as a varargplunky2011-09-011-3/+3
|
* NULL does not need a castplunky2011-08-311-3/+3
|
* Fix some additional typos/grammar slips.dholland2010-05-291-6/+6
|
* Fix dog-Latin. The plural of wumpus could be wumpi, wumpus, or even wumpora,dholland2010-05-291-5/+5
| | | but not 'wumpii'. Where does this -ii crap come from?
* remove unnecessary castdholland2009-08-271-3/+3
|
* sprinkle staticdholland2009-08-121-62/+62
|
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* Build with WARNS=4.dholland2008-01-281-19/+19
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-3/+3
|
* Fix some minor buglets in wump:garbled2006-01-191-5/+9
| | | | | | | | | | 1) Don't put two pits in the same room. 2) Don't put bats and pits in the same room. (you will never hit the bat) 3) Don't start the player in a room with a pit or bad, if possible. Some caves are so crowded the loop may go on forever, so we give up after 100 tries to put them in a safe location (as long as it's not with the wumpus). 4) Make the manpage reflect reality WRT the default number of rooms. Bug #3 pointed out by salo.
* Apply patch from PR bin/26501 to fix hang in wump if you play too manygarbled2006-01-191-8/+7
| | | | | | games in a row. Also modify change made in rev 1.18 to work correctly. take_action() returns 1 if the player dies, causing the game to allways exit after any death, now the game correctly asks if the player would like to play again.
* Fix a long-standing bug in wump(6) whereby hitting ^d to exit would firstjwise2005-03-211-6/+8
| | | | print ``Care to play another game? (y-n)'' (but then exit anyway without waiting for an answer).
* Cast last argument of execl to (char *).jsm2005-02-151-3/+3
| | | Reviewed by <hubertf>.
* Remove uses of __P.jsm2004-01-271-26/+26
|
* 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.
* Ensure that the random hop delta does make the cave connected. Basedjsm2001-08-311-4/+23
| | | on bug report and patch from <afghan@afghanhound.org.uk>.
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-2/+5
| | | | | | | | | | | | | | | Games which run setgid from dm, but don't need to, should drop their privileges at startup. Games which have a scorefile should open it at startup, then drop all privileges leaving just the open writable file descriptor. If the game can invoke subprocesses, this should be made close-on-exec. Games with scorefiles should make sure they do not get a file descriptor < 3. (Otherwise, they could get confused and corrupt the scorefile when using stdin, stdout or stderr.) Some old setuid revokes from the days of setuid games change into gid revokes.
* Use STD*_FILENO.kleink1999-09-101-4/+4
|
* Include <time.h> in various places in the games where time() or time_tjsm1999-09-091-2/+3
| | | are used.
* This patch fixes a -Wcast-qual warning in wump(6).hubertf1999-07-141-3/+3
| | | Submitted in 7994 by Joseph Myers <jsm28@cam.ac.uk>
* Only invoke pager given in $PAGER if output goes to a tty, feed pagerhubertf1999-02-101-9/+28
| | | via stdin, per PR 6699 by Joseph Myers <jsm28@cam.ac.uk>
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-3/+3
|
* Add braces to make the new egcs happy.veego1998-08-301-4/+6
|
* WARNSifylukem1997-10-121-23/+71
|
* 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 import. NetBSD RCS IDscgd1995-04-221-7/+12
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+778