Home | History | Annotate | Download | only in battlestar
History log of /src/games/battlestar/battlestar.c
RevisionDateAuthorComments
 1.16  20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.15  01-Jul-2005  jmc branches: 1.15.20;
KNF and WARNS=3
 1.14  27-Jan-2004  jsm Remove uses of __P.
 1.13  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.12  21-Sep-2000  jsm Various improvements to parsing in battlestar, mostly from OpenBSD.

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.
 1.11  08-Sep-2000  jsm Make code clearer; add a macro ROOMDESC for the number of times a room
should be visited for the short description only to be used, and don't
increment beenthere[position] beyond this value. From OpenBSD.
 1.10  08-May-2000  mycroft Use setgid(), not setregid().
 1.9  18-Sep-1999  jsm Give sensible error message in a shouldn't happen case.
 1.8  28-Jul-1999  hubertf This patch improves the handling of save files in battlestar(6), by
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.
 1.7  21-Jul-1999  hubertf Drop setgid privileges early. Derived from OpenBSD and sent in as PR 5970
by Joseph Myers <jsm28@cam.ac.uk>.
 1.6  11-Oct-1997  lukem KNFify (with indent)
 1.5  10-Oct-1997  lukem WARNSify
 1.4  07-Jan-1997  tls Sync to 4.4BSD-Lite2
 1.3  21-Mar-1995  cgd clean up import
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.3  28-Dec-1996  tls Import from 4.4BSD-Lite2
 1.1.1.2  21-Mar-1995  cgd from Lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.15.20.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.

RSS XML Feed