Home | History | Annotate | Download | only in battlestar
History log of /src/games/battlestar/cypher.c
RevisionDateAuthorComments
 1.24  02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.23  01-Jul-2005  jmc KNF and WARNS=3
 1.22  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.21  25-Sep-2000  jsm In cypher(), don't attempt to make sense of words other than VERBs or
KNIFE when a verb is required. Add AUXVERB for "make", "move",
"climb" (as in "make love", "climb up") and ignore AUXVERB as a verb,
going on to the next word, instead of treating these words as
adjectives. When creating new verbs from "put on", "put down", "take
off", mark them as type VERB. Mostly from Paul Janzen
<pjanzen@foatdi.harvard.edu>.
 1.20  25-Sep-2000  jsm Remove excess blank lines. From OpenBSD.
 1.19  24-Sep-2000  jsm Give less cryptic messages than "-1%" when WEIGHT or CUMBER are zero.
 1.18  24-Sep-2000  jsm Prevent CUMBER from going negative; avoid division by zero if it is
zero.
 1.17  22-Sep-2000  jsm Give appropriate messages (rather than saying nothing) if an verb is
used with "all" and nothing relevant is present. From OpenBSD.
 1.16  22-Sep-2000  jsm Remove all adjectives in parse(), since they are nowhere used. Fixes
crash on "carry old all" shown up by fuzz testing. Patch from Paul
Janzen <pjanzen@foatdi.harvard.edu>.
 1.15  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.14  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.13  10-Sep-2000  jsm Wording, punctuation and line length improvements. Also adjust test
for killing nonsensical things to fix crash with "kill door". From
OpenBSD.
 1.12  08-Sep-2000  jsm Spelling and punctuation corrections or improvements from OpenBSD.
 1.11  23-Jul-2000  mycroft Rename move() to moveplayer() to avoid clashing with libcurses.
 1.10  18-Sep-1999  jsm branches: 1.10.8;
Add FALLTHROUGH comment.
 1.9  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.8  25-Mar-1999  hubertf Fix object recognition, per PR 6048 by Joseph S. Myers <jsm28@cam.ac.uk>.
 1.7  24-Aug-1998  hubertf Untakable objects are marked with NULL pointers, not empty strings,
resulting in core dumps. Fixed as per PR 6006 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.10.8.1  26-Jul-2000  mycroft Approved by thorpej:
Rename move() to moveplayer() to avoid clashing with libcurses.

basesrc/games/battlestar/com1.c 1.9 -> 1.10
basesrc/games/battlestar/com7.c 1.6 -> 1.7
basesrc/games/battlestar/cypher.c 1.10 -> 1.11
basesrc/games/battlestar/extern.h 1.15 -> 1.16

RSS XML Feed