Home | History | Annotate | Download | only in wump
History log of /src/games/wump/wump.c
RevisionDateAuthorComments
 1.31  02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.30  19-Jun-2012  dholland WARNS=5, and make WARNS=5 the default for src/games.
 1.29  01-Sep-2011  plunky branches: 1.29.2;
reinstate NULL cast by request, where the NULL was being passed as a vararg
 1.28  31-Aug-2011  plunky NULL does not need a cast
 1.27  29-May-2010  dholland Fix some additional typos/grammar slips.
 1.26  29-May-2010  dholland Fix dog-Latin. The plural of wumpus could be wumpi, wumpus, or even wumpora,
but not 'wumpii'. Where does this -ii crap come from?
 1.25  27-Aug-2009  dholland remove unnecessary cast
 1.24  12-Aug-2009  dholland sprinkle static
 1.23  20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.22  28-Jan-2008  dholland branches: 1.22.6;
Build with WARNS=4.
 1.21  15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.20  19-Jan-2006  garbled branches: 1.20.10;
Fix some minor buglets in wump:
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.
 1.19  19-Jan-2006  garbled Apply patch from PR bin/26501 to fix hang in wump if you play too many
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.
 1.18  21-Mar-2005  jwise Fix a long-standing bug in wump(6) whereby hitting ^d to exit would first
print ``Care to play another game? (y-n)'' (but then exit anyway without
waiting for an answer).
 1.17  15-Feb-2005  jsm Cast last argument of execl to (char *).

Reviewed by <hubertf>.
 1.16  27-Jan-2004  jsm Remove uses of __P.
 1.15  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.14  31-Aug-2001  jsm Ensure that the random hop delta does make the cave connected. Based
on bug report and patch from <afghan@afghanhound.org.uk>.
 1.13  08-May-2000  mycroft Use setgid(), not setregid().
 1.12  12-Sep-1999  jsm Security improvements for games (largely from or inspired by OpenBSD).

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.
 1.11  10-Sep-1999  kleink Use STD*_FILENO.
 1.10  09-Sep-1999  jsm Include <time.h> in various places in the games where time() or time_t
are used.
 1.9  14-Jul-1999  hubertf This patch fixes a -Wcast-qual warning in wump(6).
Submitted in 7994 by Joseph Myers <jsm28@cam.ac.uk>
 1.8  10-Feb-1999  hubertf Only invoke pager given in $PAGER if output goes to a tty, feed pager
via stdin, per PR 6699 by Joseph Myers <jsm28@cam.ac.uk>
 1.7  13-Sep-1998  hubertf mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 1.6  30-Aug-1998  veego Add braces to make the new egcs happy.
 1.5  12-Oct-1997  lukem WARNSify
 1.4  24-Apr-1995  cgd Various changes to make games compile w/o warnings on the alpha:
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
 1.3  22-Apr-1995  cgd clean up import. NetBSD RCS IDs
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  22-Apr-1995  cgd src/games/wump from Lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.20.10.2  23-Mar-2008  matt sync with HEAD
 1.20.10.1  09-Jan-2008  matt sync with HEAD
 1.22.6.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.29.2.1  30-Oct-2012  yamt sync with head

RSS XML Feed