diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-09-23 03:02:39 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2000-09-23 03:02:39 +0000 |
commit | f6309a870e25a5f3bdffac70b081140ced9881c8 (patch) | |
tree | f32005b4b51cc4f5cda9705ab238dd5feb29cff4 /games/battlestar/com6.c | |
parent | 72ac17839d819818408469ecafad2cae36fbb3e8 (diff) |
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.
Diffstat (limited to 'games/battlestar/com6.c')
-rw-r--r-- | games/battlestar/com6.c | 7 |
1 files changed, 3 insertions, 4 deletions
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) { |