Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Allow for bathing goddess in love(); give better message for a lover | 2000-09-23 | 1 | -13/+24 | ||
| | | | that isn't present and for certain choices of lover. From OpenBSD. | |||||
* | Allow for the bathing goddess in ravage(). From OpenBSD. | 2000-09-23 | 1 | -4/+8 | ||
| | ||||||
* | Use a lookup table to identify whether objects are plural or singular, | 2000-09-23 | 5 | -26/+41 | ||
| | | | | instead of testing the final character against 's' in each place. Avoids oddities about "pot of jewels" and "compass". | |||||
* | Don't say "Kicked." of an object not present; give sensible messages. | 2000-09-22 | 1 | -3/+7 | ||
| | | | From OpenBSD. | |||||
* | Check for an object being taken not being there before checking for | 2000-09-22 | 1 | -5/+5 | ||
| | | | | whether it is too heavy or too bulky; gives a better message for "take viper" with the viper not present. | |||||
* | Give appropriate messages (rather than saying nothing) if an verb is | 2000-09-22 | 1 | -2/+48 | ||
| | | | used with "all" and nothing relevant is present. From OpenBSD. | |||||
* | Remove all adjectives in parse(), since they are nowhere used. Fixes | 2000-09-22 | 6 | -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 or | 2000-09-22 | 1 | -3/+4 | ||
| | | | nonsense message. From OpenBSD. | |||||
* | Various improvements to parsing in battlestar, mostly from OpenBSD. | 2000-09-21 | 7 | -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 to | 2000-09-21 | 1 | -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 kill | 2000-09-21 | 1 | -5/+31 | ||
| | | | in murder(). From OpenBSD. | |||||
* | die() on EOF; based on OpenBSD. | 2000-09-21 | 1 | -2/+4 | ||
| | ||||||
* | From OpenBSD: in kiss(), "take" the bathing goddess if required, and | 2000-09-21 | 1 | -30/+39 | ||
| | | | give a better error message if the person to kiss is not present. | |||||
* | Add missing initialisers (avoid gcc -W warnings) and comments giving | 2000-09-18 | 2 | -556/+1106 | ||
| | | | room numbers. | |||||
* | Clean up formatting; partly from OpenBSD. | 2000-09-17 | 7 | -240/+209 | ||
| | ||||||
* | Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op), | 2000-09-17 | 6 | -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 length | 2000-09-10 | 3 | -27/+32 | ||
| | | | | adjustments, and support for '=' in room descriptions meaning a literal '-'. | |||||
* | Wording, punctuation and line length improvements. Also adjust test | 2000-09-10 | 7 | -26/+26 | ||
| | | | | for killing nonsensical things to fix crash with "kill door". From OpenBSD. | |||||
* | Make spacing nicer and add explicit NULL initializers. | 2000-09-09 | 1 | -167/+167 | ||
| | ||||||
* | Store copy of username with strdup rather than using a fixed length | 2000-09-09 | 3 | -19/+23 | ||
| | | | buffer. Also make initialization functions and arrays static. | |||||
* | Put prototypes in alphabetical order. | 2000-09-09 | 1 | -7/+7 | ||
| | ||||||
* | Spelling and punctuation corrections or improvements from OpenBSD. | 2000-09-08 | 6 | -28/+28 | ||
| | ||||||
* | Make code clearer; add a macro ROOMDESC for the number of times a room | 2000-09-08 | 3 | -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. | 2000-09-08 | 1 | -7/+27 | ||
| | ||||||
* | Rename move() to moveplayer() to avoid clashing with libcurses. | 2000-07-23 | 4 | -20/+20 | ||
| | ||||||
* | Use setgid(), not setregid(). | 2000-05-08 | 1 | -3/+3 | ||
| | ||||||
* | Use err(1, NULL) and warn(NULL) for `out of memory' error messages. | 2000-01-09 | 1 | -5/+5 | ||
| | ||||||
* | Fix -Wsign-compare warnings. | 1999-09-18 | 2 | -6/+6 | ||
| | ||||||
* | Use strncpy() rather than strcpy() with fixed size buffer. | 1999-09-18 | 1 | -3/+3 | ||
| | ||||||
* | Add missing initialisers. | 1999-09-18 | 2 | -6/+6 | ||
| | ||||||
* | Add FALLTHROUGH comment. | 1999-09-18 | 1 | -2/+3 | ||
| | ||||||
* | Give sensible error message in a shouldn't happen case. | 1999-09-18 | 1 | -3/+3 | ||
| | ||||||
* | Declare variables in extern.h as extern, and add non-extern | 1999-09-14 | 2 | -42/+78 | ||
| | | | declarations to globals.c. | |||||
* | Use time() instead of gettimeofday(). | 1999-09-14 | 2 | -10/+7 | ||
| | ||||||
* | Fix uses of names of library functions for other purposes. | 1999-09-13 | 3 | -9/+9 | ||
| | ||||||
* | A couple more checks for file descriptor < 3 missed earlier. | 1999-09-13 | 1 | -2/+4 | ||
| | ||||||
* | Add `__noreturn__' and `__unused__' attributes where appropriate to | 1999-09-08 | 2 | -7/+7 | ||
| | | | | | | | | | | | | the games. This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Most noreturn attributes were previously added in bin/6144, with some others that were missed then in bin/8082. Previous `unused' attributes were covered in bin/6557, bin/8058 and other PRs (all these PRs have already been handled and closed). | |||||
* | This patch improves the handling of save files in battlestar(6), by | 1999-07-28 | 6 | -44/+119 | ||
| | | | | | | | | | | allowing the user to choose the name of the save file and specify it on the command line when restoring. It also eliminates a buffer overrun in determining the path to the save file, and any particular arbitrary limit on the name length. In the name of a tidier home directory, the default name is changed from "Bstar" to ".Bstar". Patch supplied in PR 8085 by Joseph Myers <jsm28@cam.ac.uk> Minor modification (s/startup/filename/ in initialize()) by me. | |||||
* | Drop setgid privileges early. Derived from OpenBSD and sent in as PR 5970 | 1999-07-21 | 3 | -13/+25 | ||
| | | | by Joseph Myers <jsm28@cam.ac.uk>. | |||||
* | From PR 7987 by Joseph Myers <jsm28@cam.ac.uk>: | 1999-07-14 | 6 | -26/+26 | ||
| | | | | More battlestar(6) spelling and punctuation fixes for battlestar(6). These ones come from OpenBSD. | |||||
* | initscr() returns a pointer, compare return value with NULL and not | 1999-04-18 | 1 | -3/+3 | ||
| | | | | an int. Compatible with other versions of curses. | |||||
* | Fix object recognition, per PR 6048 by Joseph S. Myers <jsm28@cam.ac.uk>. | 1999-03-25 | 1 | -2/+32 | ||
| | ||||||
* | Const poisoning, per PR 6660 by Joseph Myers <jsm28@cam.ac.uk> | 1999-02-10 | 12 | -69/+69 | ||
| | ||||||
* | mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>) | 1998-09-13 | 1 | -4/+4 | ||
| | ||||||
* | add sanity checks when saving/restoring games (PR#6138 by Joseph Myers ↵ | 1998-09-13 | 1 | -4/+10 | ||
| | | | | <jsm28@cam.ac.uk>) | |||||
* | Fix typo, closes pr 6137 by Joseph Myers. | 1998-09-10 | 1 | -2/+2 | ||
| | ||||||
* | Add braces to make the new egcs happy. | 1998-08-30 | 1 | -3/+4 | ||
| | ||||||
* | DTRT if "give" is invoked without arguments. Fix contributed by Joseph S. | 1998-08-29 | 1 | -7/+17 | ||
| | | | Myers <jsm28@cam.ac.uk>, closeds PR 6049. | |||||
* | Don't allow empty "give" command (without arguments). | 1998-08-28 | 1 | -2/+6 | ||
| | | | Fixes PR 6049 by Joseph Myers <jsm@octomino.demon.co.uk>. | |||||
* | Untakable objects are marked with NULL pointers, not empty strings, | 1998-08-24 | 1 | -6/+6 | ||
| | | | | resulting in core dumps. Fixed as per PR 6006 by Joseph Myers <jsm28@cam.ac.uk>. |