diff options
author | pjanzen <pjanzen@openbsd.org> | 2000-09-17 21:28:30 +0000 |
---|---|---|
committer | pjanzen <pjanzen@openbsd.org> | 2000-09-17 21:28:30 +0000 |
commit | 52dcec9a0da93b6b502bd6e27acd41fb9df29794 (patch) | |
tree | b8eb4ac89469c19ced5bd4d540e24a9085dbd699 /games/battlestar/words.c | |
parent | Only check defined bits when waiting for valid AC97 input slot (diff) | |
download | wireguard-openbsd-52dcec9a0da93b6b502bd6e27acd41fb9df29794.tar.xz wireguard-openbsd-52dcec9a0da93b6b502bd6e27acd41fb9df29794.zip |
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.c | 5 |
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 }, |