summaryrefslogtreecommitdiffstats
path: root/battlestar/cypher.c
Commit message (Collapse)AuthorAgeFilesLines
* Prevent CUMBER from going negative; avoid division by zero if it isjsm2000-09-241-3/+4
| | | zero.
* 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-221-4/+2
| | | | crash on "carry old all" shown up by fuzz testing. Patch from Paul Janzen <pjanzen@foatdi.harvard.edu>.
* Various improvements to parsing in battlestar, mostly from OpenBSD.jsm2000-09-211-2/+3
| | | | | | | | | | | | | | | | | | | | 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.
* Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op),jsm2000-09-171-2/+29
| | | | | and "verbose"/"brief" (in verbose mode, always show long room descriptions), and synonyms "papaya" for "papayas" and "coconut" for "coconuts".
* Wording, punctuation and line length improvements. Also adjust testjsm2000-09-101-3/+3
| | | | for killing nonsensical things to fix crash with "kill door". From OpenBSD.
* Spelling and punctuation corrections or improvements from OpenBSD.jsm2000-09-081-3/+3
|
* Rename move() to moveplayer() to avoid clashing with libcurses.mycroft2000-07-231-8/+8
|
* Add FALLTHROUGH comment.jsm1999-09-181-2/+3
|
* This patch improves the handling of save files in battlestar(6), byhubertf1999-07-281-3/+19
| | | | | | | | | | 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.
* Fix object recognition, per PR 6048 by Joseph S. Myers <jsm28@cam.ac.uk>.hubertf1999-03-251-2/+32
|
* Untakable objects are marked with NULL pointers, not empty strings,hubertf1998-08-241-6/+6
| | | | resulting in core dumps. Fixed as per PR 6006 by Joseph Myers <jsm28@cam.ac.uk>.
* KNFify (with indent)lukem1997-10-111-355/+344
|
* WARNSifylukem1997-10-101-10/+14
|
* Sync to 4.4BSD-Lite2tls1997-01-071-4/+4
|
* clean up importcgd1995-03-211-4/+9
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+430