diff options
Diffstat (limited to 'battlestar/battlestar.c')
-rw-r--r-- | battlestar/battlestar.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/battlestar/battlestar.c b/battlestar/battlestar.c index 6260e6cf..acafb5c1 100644 --- a/battlestar/battlestar.c +++ b/battlestar/battlestar.c @@ -1,4 +1,4 @@ -/* $NetBSD: battlestar.c,v 1.5 1997/10/10 11:39:12 lukem Exp $ */ +/* $NetBSD: battlestar.c,v 1.6 1997/10/11 02:06:55 lukem Exp $ */ /* * Copyright (c) 1983, 1993 @@ -37,15 +37,15 @@ #ifndef lint __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\ The Regents of the University of California. All rights reserved.\n"); -#endif /* not lint */ +#endif /* not lint */ #ifndef lint #if 0 static char sccsid[] = "@(#)battlestar.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: battlestar.c,v 1.5 1997/10/10 11:39:12 lukem Exp $"); +__RCSID("$NetBSD: battlestar.c,v 1.6 1997/10/11 02:06:55 lukem Exp $"); #endif -#endif /* not lint */ +#endif /* not lint */ /* * Battlestar - a stellar-tropical adventure game @@ -56,27 +56,27 @@ __RCSID("$NetBSD: battlestar.c,v 1.5 1997/10/10 11:39:12 lukem Exp $"); #include "extern.h" -int main __P((int, char *[])); +int main __P((int, char *[])); int -main(argc,argv) - int argc; - char **argv; +main(argc, argv) + int argc; + char **argv; { - char mainbuf[LINELENGTH]; - char *next; + char mainbuf[LINELENGTH]; + char *next; initialize(argc < 2 || strcmp(argv[1], "-r")); start: news(); beenthere[position]++; if (notes[LAUNCHED]) - crash(); /* decrements fuel & crash */ + crash(); /* decrements fuel & crash */ if (matchlight) { puts("Your match splutters out."); matchlight = 0; } - if (!notes[CANTSEE] || testbit(inven,LAMPON) || + if (!notes[CANTSEE] || testbit(inven, LAMPON) || testbit(location[position].objects, LAMPON)) { writedes(); printobjs(); @@ -85,16 +85,16 @@ start: whichway(location[position]); run: next = getcom(mainbuf, sizeof mainbuf, ">-: ", - "Please type in something."); + "Please type in something."); for (wordcount = 0; next && wordcount < 20; wordcount++) next = getword(next, words[wordcount], -1); parse(); switch (cypher()) { - case -1: - goto run; - case 0: - goto start; - default: - exit(0); + case -1: + goto run; + case 0: + goto start; + default: + exit(0); } } |