summaryrefslogtreecommitdiff
path: root/games/battlestar/com3.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>2000-07-03 05:23:47 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>2000-07-03 05:23:47 +0000
commit07fa35ce134f0db4619e4f6f624a73f734592b00 (patch)
treea244e6f77987cb2dd58051e6465abe2a52fcac17 /games/battlestar/com3.c
parenteb9c0ff585d2e7d471d66b411a6de67434fb6a82 (diff)
Finding bugs in battlestar is like shooting fish in a barrel.
Don't overflow beenthere[]. Add "verbose" option. Fix spelling (including embedded hyphens in descriptions) and grammar. "Kill" will now use the laser if you have no cutting implements. Formatting. You can do more things to the bathing goddess. A little less guess-the-word. Occasionally better error messages, particularly with "all" when nothing applies. "kick door" no longer segfaults. Nor does "kill door". More bugs remain...
Diffstat (limited to 'games/battlestar/com3.c')
-rw-r--r--games/battlestar/com3.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/games/battlestar/com3.c b/games/battlestar/com3.c
index cc24bf7bcfc..43ef6a5eb19 100644
--- a/games/battlestar/com3.c
+++ b/games/battlestar/com3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com3.c,v 1.6 1999/09/25 20:30:45 pjanzen Exp $ */
+/* $OpenBSD: com3.c,v 1.7 2000/07/03 05:23:44 pjanzen Exp $ */
/* $NetBSD: com3.c,v 1.3 1995/03/21 15:07:00 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)com3.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: com3.c,v 1.6 1999/09/25 20:30:45 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: com3.c,v 1.7 2000/07/03 05:23:44 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -200,7 +200,8 @@ shoot()
if (!TestBit(inven, LASER))
puts("You aren't holding a blaster.");
else {
- while(wordtype[++wordnumber] == ADJS);
+ while(wordtype[++wordnumber] == ADJS)
+ ;
while(wordnumber <= wordcount && wordtype[wordnumber] == OBJECT) {
value = wordvalue[wordnumber];
printf("%s:\n", objsht[value]);