summaryrefslogtreecommitdiffstats
path: root/battlestar/battlestar.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* KNF and WARNS=3jmc2005-07-011-7/+3
|
* Remove uses of __P.jsm2004-01-271-3/+3
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Various improvements to parsing in battlestar, mostly from OpenBSD.jsm2000-09-211-3/+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.
* Make code clearer; add a macro ROOMDESC for the number of times a roomjsm2000-09-081-6/+10
| | | | should be visited for the short description only to be used, and don't increment beenthere[position] beyond this value. From OpenBSD.
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* Give sensible error message in a shouldn't happen case.jsm1999-09-181-3/+3
|
* This patch improves the handling of save files in battlestar(6), byhubertf1999-07-281-3/+6
| | | | | | | | | | 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 5970hubertf1999-07-211-2/+5
| | | by Joseph Myers <jsm28@cam.ac.uk>.
* KNFify (with indent)lukem1997-10-111-19/+19
|
* WARNSifylukem1997-10-101-8/+11
|
* Sync to 4.4BSD-Lite2tls1997-01-071-4/+4
|
* clean up importcgd1995-03-211-7/+12
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+91