summaryrefslogtreecommitdiffstats
path: root/wump
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-4/+4
|
* Use PREFIX nowCameron Katri2021-03-282-6/+8
|
* Get all the games compiling for iOSCameron Katri2021-02-221-6/+16
|
* 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
|
* Make the default WARNS for games 4. The only game that needs to set WARNSdholland2008-01-281-2/+1
| | | to anything else now is rogue, so clear WARNS from the other makefiles.
* Build with WARNS=4.dholland2008-01-282-20/+21
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-3/+3
|
* Bump date for previous.wiz2006-01-221-2/+2
|
* Fix some minor buglets in wump:garbled2006-01-192-7/+11
| | | | | | | | | | 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-073-19/+7
| | | 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>
* convert from NOxxx= to MKxxx=no.lukem1999-02-131-2/+4
| | | include <bsd.own.mk> if testing a MKxxx variable.
* 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>
* don't install in /usr/share if NOSHARE is definedlukem1998-09-291-1/+3
|
* 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-122-26/+74
|
* - Makefile cleanupschristos1997-03-241-5/+3
|
* Use ${INSTALL}.thorpej1996-10-181-2/+2
|
* 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-224-18/+25
|
* specify man pages the new way.cgd1994-12-221-2/+2
|
* Update to use new -mandoc macros.jtc1993-08-051-30/+32
|
* Add RCS identifiers.mycroft1993-08-012-2/+4
|
* Add RCS indentifiers.mycroft1993-08-011-1/+2
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-215-0/+977