summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Give appropriate messages (rather than saying nothing) if an verb isjsm2000-09-221-2/+48
| | | used with "all" and nothing relevant is present. From OpenBSD.
* Remove all adjectives in parse(), since they are nowhere used. Fixesjsm2000-09-226-28/+33
| | | | crash on "carry old all" shown up by fuzz testing. Patch from Paul Janzen <pjanzen@foatdi.harvard.edu>.
* Give an appropriate error on "kill all" rather than a crash orjsm2000-09-221-3/+4
| | | nonsense message. From OpenBSD.
* Various improvements to parsing in battlestar, mostly from OpenBSD.jsm2000-09-217-24/+99
| | | | | | | | | | | | | | | | | | | | Define a constant WORDLEN. Always use this constant and NWORD where appropriate. Use NWORD - 1 in battlestar.c to avoid off-by-one error. Increment wordnumber after the INVEN verb to allow it to be followed by a comma and other actions. Avoid overflowing elements of the words array if input words are too long. Parse "," as AND except when followed by a verb, to allow such constructions as "take foo, bar, and baz". Trim AND AND which may occur from the ", and" in such a list. Avoid crashes from EVERYTHING in the wrong place by moving it to the start of OBJECT AND EVERYTHING and NOUNS AND EVERYTHING sequences, and trimming EVERYTHING AND EVERYTHING.
* Don't try to wear anything that isn't OBJECT or NOUNS. Don't try tojsm2000-09-211-3/+6
| | | | | | wear DOOR or anything without a short description. Fixes crashes on "wear knfo" (bug reported by Peter Maydell <pmaydell@chiark.greenend.org.uk>), "wear wear", "wear kick", "wear door" and "wear goddess". Partly from OpenBSD.
* If no hand-to-hand weapons are available, try using the laser to killjsm2000-09-211-5/+31
| | | in murder(). From OpenBSD.
* die() on EOF; based on OpenBSD.jsm2000-09-211-2/+4
|
* From OpenBSD: in kiss(), "take" the bathing goddess if required, andjsm2000-09-211-30/+39
| | | give a better error message if the person to kiss is not present.
* Add missing initialisers (avoid gcc -W warnings) and comments givingjsm2000-09-182-556/+1106
| | | room numbers.
* Clean up formatting; partly from OpenBSD.jsm2000-09-177-240/+209
|
* Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op),jsm2000-09-176-12/+85
| | | | | and "verbose"/"brief" (in verbose mode, always show long room descriptions), and synonyms "papaya" for "papayas" and "coconut" for "coconuts".
* Based on OpenBSD: spelling, punctuation, grammar and line lengthjsm2000-09-103-27/+32
| | | | adjustments, and support for '=' in room descriptions meaning a literal '-'.
* Wording, punctuation and line length improvements. Also adjust testjsm2000-09-107-26/+26
| | | | for killing nonsensical things to fix crash with "kill door". From OpenBSD.
* Make spacing nicer and add explicit NULL initializers.jsm2000-09-091-167/+167
|
* Store copy of username with strdup rather than using a fixed lengthjsm2000-09-093-19/+23
| | | buffer. Also make initialization functions and arrays static.
* Put prototypes in alphabetical order.jsm2000-09-091-7/+7
|
* Spelling and punctuation corrections or improvements from OpenBSD.jsm2000-09-086-28/+28
|
* Make code clearer; add a macro ROOMDESC for the number of times a roomjsm2000-09-083-10/+17
| | | | should be visited for the short description only to be used, and don't increment beenthere[position] beyond this value. From OpenBSD.
* Manpage improvements based on OpenBSD.jsm2000-09-081-7/+27
|
* If we install limerick-o.dat, we should also install limerick-o to make itabs2000-08-171-3/+3
| | | usable.
* Split netbsd fortunes into offensive and non offensive.abs2000-08-174-56/+69
| | | Split could be considered somewhat arbitrary.
* NetBSD: A pmap for every occasionabs2000-08-171-0/+3
|
* Corrected quote. It was totally missing its (well-known) equivalent ofmason2000-08-121-2/+3
| | | a punch line.
* Use a local implementation of htonl() called h2nl(). htonl() is notsimonb2000-07-311-6/+26
| | | | | available in all cross-compile environments. Patches from Chris Demetriou.
* Add 3 from me.ad2000-07-311-0/+9
|
* Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros for host programs -simonb2000-07-311-11/+11
| | | | | use portable ANSI constructs instead. Patches from Chris Demetriou.
* Use a local implementation of htonl() called h2nl(). htonl() is notsimonb2000-07-311-7/+22
| | | | | available in all cross-compile environments. Patches from Chris Demetriou.
* Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> errsimonb2000-07-311-12/+11
| | | | | function for host programs - use portable ANSI constructs instead. Patches from Chris Demetriou.
* Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err/warnxsimonb2000-07-311-14/+13
| | | | | functions for host programs - use portable ANSI constructs instead. Patches from Chris Demetriou.
* Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err/errxsimonb2000-07-311-15/+20
| | | | | functions for host programs - use portable ANSI constructs instead. Patches from Chris Demetriou.
* Rename move() to moveplayer() to avoid clashing with libcurses.mycroft2000-07-234-20/+20
|
* printf() pedant - do not pass variable alone, use %s.itojun2000-07-104-14/+14
| | | idea from openbsd. after looking at freebsd commit msgs from kris@freebsd.
* remove extra period in SEE ALL sectionmsaitoh2000-07-051-2/+2
|
* After weeding out duplicate, modify entry to be mathematicallymjl2000-07-031-2/+2
| | | | correct at least. (Yes, both were wrong. People can't integrate nowadays anymore :)
* Remove duplicate (and incorrect) entry. From Anton Berezinmjl2000-07-031-12/+0
| | | <tobez@tobez.org> in FreeBSD PR/19670
* More include additions for exit, abs, strcmp, etc.matt2000-07-0320-39/+60
|
* Offered horse brutality to a previously incorrect RHPS quote.mason2000-06-301-2/+2
|
* Make this produce local objects with .lo suffix.matt2000-06-201-8/+8
|
* NetBSD: Ports to * boards.scw2000-06-141-0/+3
|
* Don't make /var/games/sail here.mycroft2000-06-111-8/+1
|
* Remove one of mine that really wasn't very good, and add:jwise2000-06-071-3/+2
| | | NetBSD: abandon all hype, oh ye who enter here.
* Fix core dump.blymn2000-05-241-2/+2
|
* Fix coredump on start.blymn2000-05-241-3/+3
|
* Converted games to use the new termcap interface.blymn2000-05-224-32/+70
|
* * Fix termcap handling to use the new interface to avoid bufferblymn2000-05-201-62/+43
| | | | overflows with extended termcap entries. * Made delay_output use usleep instead of the grungy tgoto hack it had.
* Fix typo, pointed out by seebs@plethora.net in PR bin/10131.hubertf2000-05-171-1/+1
|
* Use setgid(), not setregid().mycroft2000-05-0826-78/+78
|
* NetBSD - because Unix isn't just #include <linux.h>, i386, ELF, ...!pooka2000-05-021-0/+4
|
* Cast pointer diffs to long for printing with %ld.thorpej2000-04-271-3/+3
|
* Cast pointer difference to long when printing w/ %ld.thorpej2000-04-271-3/+3
|