Home | History | Annotate | Download | only in battlestar
History log of /src/games/battlestar/globals.c
RevisionDateAuthorComments
 1.20  06-Dec-2020  dholland speed limit 80
 1.19  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.18  25-Sep-2000  jsm Add new flags OBJ_PERSON and OBJ_NONOBJ to the objflags array.
 1.17  25-Sep-2000  jsm Add OBJ_AN flag to objflags so as to use "a" or "an" appropriately in
messages; avoids "a amulet", "a Elf". Define and use macros to use
"a", "an", "the", "is", "are" appropriately. Partly based on OpenBSD.
 1.16  24-Sep-2000  jsm Make hash table static in parse.c.
 1.15  24-Sep-2000  jsm Use NULL instead of 0 (from OpenBSD). Also add or adjust comments.
 1.14  23-Sep-2000  jsm Use a lookup table to identify whether objects are plural or singular,
instead of testing the final character against 's' in each place.
Avoids oddities about "pot of jewels" and "compass".
 1.13  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.12  17-Sep-2000  jsm Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op),
and "verbose"/"brief" (in verbose mode, always show long room
descriptions), and synonyms "papaya" for "papayas" and "coconut" for
"coconuts".
 1.11  09-Sep-2000  jsm Store copy of username with strdup rather than using a fixed length
buffer. Also make initialization functions and arrays static.
 1.10  08-Sep-2000  jsm Spelling and punctuation corrections or improvements from OpenBSD.
 1.9  14-Sep-1999  jsm Declare variables in extern.h as extern, and add non-extern
declarations to globals.c.
 1.8  14-Jul-1999  hubertf From PR 7987 by Joseph Myers <jsm28@cam.ac.uk>:
More battlestar(6) spelling and punctuation fixes for battlestar(6).
These ones come from OpenBSD.
 1.7  10-Feb-1999  hubertf Const poisoning, per PR 6660 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

RSS XML Feed