summaryrefslogtreecommitdiffstats
path: root/battlestar/battlestar.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-11 02:06:55 +0000
committerlukem <lukem@NetBSD.org>1997-10-11 02:06:55 +0000
commit61a235f9c8a332df14e8fe40b7b1fcaa98ecc548 (patch)
tree50f20c42070d381297a96acd027002bc10e84095 /battlestar/battlestar.c
parent098ef9272dbfc3deff7afcd768ea90836e72a163 (diff)
downloadbsdgames-darwin-61a235f9c8a332df14e8fe40b7b1fcaa98ecc548.tar.gz
bsdgames-darwin-61a235f9c8a332df14e8fe40b7b1fcaa98ecc548.tar.zst
bsdgames-darwin-61a235f9c8a332df14e8fe40b7b1fcaa98ecc548.zip
KNFify (with indent)
Diffstat (limited to 'battlestar/battlestar.c')
-rw-r--r--battlestar/battlestar.c38
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);
}
}