summaryrefslogtreecommitdiff
path: root/games/battlestar/words.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2000-09-17 21:28:34 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2000-09-17 21:28:34 +0000
commitea0d3a5d75c75fde6f0c685b99a2101c68dbb67c (patch)
treec1201fa143c4c79f84013cea3c06e7fe0727feb4 /games/battlestar/words.c
parent7bf1025fb37d8f364d6e054c148a119f34d28825 (diff)
Fewer segfaults ("take all and all", "wear wear"), better parsing
(e.g. disambiguation of "drop body"). Also, use "a" or "an" correctly, don't overflow the words array, and don't kick items you're wearing.
Diffstat (limited to 'games/battlestar/words.c')
-rw-r--r--games/battlestar/words.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/games/battlestar/words.c b/games/battlestar/words.c
index 02f9fe14ca8..10da4fc1079 100644
--- a/games/battlestar/words.c
+++ b/games/battlestar/words.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: words.c,v 1.6 2000/07/03 05:23:46 pjanzen Exp $ */
+/* $OpenBSD: words.c,v 1.7 2000/09/17 21:28:33 pjanzen Exp $ */
/* $NetBSD: words.c,v 1.3 1995/03/21 15:08:00 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)words.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: words.c,v 1.6 2000/07/03 05:23:46 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: words.c,v 1.7 2000/09/17 21:28:33 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -150,6 +150,7 @@ struct wlist wlist[] = {
{ "everything", EVERYTHING, OBJECT, NULL },
{ "all", EVERYTHING, OBJECT, NULL },
{ "and", AND, CONJ, NULL },
+ { ",", AND, CONJ, NULL },
{ "kill", KILL, VERB, NULL },
{ "fight", KILL, VERB, NULL },
{ "ravage", RAVAGE, VERB, NULL },