From f6309a870e25a5f3bdffac70b081140ced9881c8 Mon Sep 17 00:00:00 2001 From: Paul Janzen Date: Sat, 23 Sep 2000 03:02:39 +0000 Subject: drop adjectives in parse(), since they're never used. tidy a little. fix love() a bit. From conversations with jsm@netbsd.org: Add objflags[] to deal with plurals and a/an usage. Commas don't mean AND if followed by a verb. Check for object presence before trying to lift or eat it. --- games/battlestar/com6.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'games/battlestar/com6.c') diff --git a/games/battlestar/com6.c b/games/battlestar/com6.c index 9936f7d50c0..6d63fc5e000 100644 --- a/games/battlestar/com6.c +++ b/games/battlestar/com6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com6.c,v 1.13 2000/09/21 00:23:43 pjanzen Exp $ */ +/* $OpenBSD: com6.c,v 1.14 2000/09/23 03:02:36 pjanzen Exp $ */ /* $NetBSD: com6.c,v 1.5 1995/04/27 21:30:23 mycroft Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)com6.c 8.2 (Berkeley) 4/28/95"; #else -static char rcsid[] = "$OpenBSD: com6.c,v 1.13 2000/09/21 00:23:43 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: com6.c,v 1.14 2000/09/23 03:02:36 pjanzen Exp $"; #endif #endif /* not lint */ @@ -234,8 +234,7 @@ light() void dooropen() { /* synonyms = {open, unlock} */ - while(wordtype[++wordnumber] == ADJS) - ; + wordnumber++; if (wordnumber <= wordcount && wordtype[wordnumber] == NOUNS && wordvalue[wordnumber] == DOOR) { switch(position) { -- cgit v1.2.3