summaryrefslogtreecommitdiffstats
path: root/games/battlestar
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:37:36 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-05-30 03:37:36 +0000
commit30ef9631c5eac7f8254bd3d7ad274d34d9f518b8 (patch)
tree4d8ac7e75ac179a918a76def244de6e3f3314e76 /games/battlestar
parent188803394908f222ab3ed8ec32331eb6dd00fd2d (diff)
downloadFreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.zip
FreeBSD-src-30ef9631c5eac7f8254bd3d7ad274d34d9f518b8.tar.gz
Remove trailing whitespace.
Diffstat (limited to 'games/battlestar')
-rw-r--r--games/battlestar/com1.c4
-rw-r--r--games/battlestar/com2.c10
-rw-r--r--games/battlestar/com3.c4
-rw-r--r--games/battlestar/com4.c14
-rw-r--r--games/battlestar/com5.c2
-rw-r--r--games/battlestar/com7.c4
-rw-r--r--games/battlestar/cypher.c34
-rw-r--r--games/battlestar/externs.h6
-rw-r--r--games/battlestar/getcom.c2
-rw-r--r--games/battlestar/globals.c4
-rw-r--r--games/battlestar/room.c4
11 files changed, 44 insertions, 44 deletions
diff --git a/games/battlestar/com1.c b/games/battlestar/com1.c
index 2e50639..d74f862 100644
--- a/games/battlestar/com1.c
+++ b/games/battlestar/com1.c
@@ -140,7 +140,7 @@ news()
fight(WOODSMAN,50);
}
switch(position){
-
+
case 267:
case 257: /* entering a cave */
case 274:
@@ -225,7 +225,7 @@ crash()
if (!location[position].flyhere || (testbit(location[position].objects,LAND) && fuel <= 0)){
if (!location[position].flyhere)
puts("You're flying too low. We're going to crash!");
- else{
+ else{
puts("You're out of fuel. We'll have to crash land!");
if (!location[position].down){
puts("Your viper strikes the ground and explodes into firey fragments.");
diff --git a/games/battlestar/com2.c b/games/battlestar/com2.c
index 614155c..39148fc 100644
--- a/games/battlestar/com2.c
+++ b/games/battlestar/com2.c
@@ -48,7 +48,7 @@ wearit() /* synonyms = {sheathe, sheath} */
value = wordvalue[wordnumber];
for (n=0; objsht[value][n]; n++);
switch(value){
-
+
case -1:
puts("Wear what?");
return(firstnumber);
@@ -86,11 +86,11 @@ wearit() /* synonyms = {sheathe, sheath} */
}
else if (testbit(wear,value))
printf("You are already wearing the %s.\n", objsht[value]);
- else
+ else
printf("You aren't holding the %s.\n", objsht[value]);
if (wordnumber < wordcount - 1 && wordvalue[++wordnumber] == AND)
wordnumber++;
- else
+ else
return(firstnumber);
} /* end switch */
} /* end while */
@@ -166,7 +166,7 @@ murder()
printf("Your %s should do the trick.\n",objsht[n]);
while (wordtype[++wordnumber] == ADJS);
switch(wordvalue[wordnumber]){
-
+
case NORMGOD:
if (testbit(location[position].objects,BATHGOD)){
puts("The goddess's head slices off. Her corpse floats in the water.");
@@ -290,7 +290,7 @@ follow()
notes[CANTSEE] = 1;
return(0);
}
- else
+ else
puts("There is no one to follow.");
return(-1);
}
diff --git a/games/battlestar/com3.c b/games/battlestar/com3.c
index cfee80f..bc4ec9f 100644
--- a/games/battlestar/com3.c
+++ b/games/battlestar/com3.c
@@ -57,7 +57,7 @@ dig()
puts("Nothing happens.");
}
}
- else
+ else
puts("You don't have a shovel.");
}
@@ -216,7 +216,7 @@ shoot()
if (wordnumber <= wordcount && wordtype[wordnumber] == NOUNS){
time++;
switch(wordvalue[wordnumber]){
-
+
case DOOR:
switch(position){
case 189:
diff --git a/games/battlestar/com4.c b/games/battlestar/com4.c
index 016b648..fe1d96b 100644
--- a/games/battlestar/com4.c
+++ b/games/battlestar/com4.c
@@ -88,7 +88,7 @@ unsigned int from[];
if (wordnumber <= wordcount && wordtype[wordnumber] == NOUNS)
switch(wordvalue[wordnumber]){
-
+
case SWORD:
if (testbit(from, SWORD)){
wordtype[wordnumber--] = OBJECT;
@@ -169,7 +169,7 @@ unsigned int from[];
clearbit(location[position].objects,BATHGOD);
} else if (!testbit(location[position].objects,BATHGOD))
puts("You're in no position to take her.");
- else
+ else
puts("She moves away from you.");
break;
@@ -191,7 +191,7 @@ throw(name)
first = wordnumber;
if (drop(name) != -1){
switch(wordvalue[wordnumber]){
-
+
case AHEAD:
deposit = ahead;
break;
@@ -253,7 +253,7 @@ throw(name)
}
if (wordnumber < wordcount - 1 && wordvalue[++wordnumber] == AND)
wordnumber++;
- else
+ else
return(first);
}
return(first);
@@ -264,7 +264,7 @@ throw(name)
drop(name)
char *name;
{
-
+
int firstnumber, value;
firstnumber = wordnumber;
@@ -333,7 +333,7 @@ eat()
while(wordnumber <= wordcount){
value = wordvalue[wordnumber];
switch(value){
-
+
case -1:
puts("Eat what?");
return(firstnumber);
@@ -371,7 +371,7 @@ eat()
printf("You aren't holding the %s.\n", objsht[value]);
if (wordnumber < wordcount - 1 && wordvalue[++wordnumber] == AND)
wordnumber++;
- else
+ else
return(firstnumber);
} /* end switch */
} /* end while */
diff --git a/games/battlestar/com5.c b/games/battlestar/com5.c
index 7c050eb..04e9cfe 100644
--- a/games/battlestar/com5.c
+++ b/games/battlestar/com5.c
@@ -57,7 +57,7 @@ kiss()
break;
default:
puts("She's gone limp.");
-
+
}
break;
case NATIVE:
diff --git a/games/battlestar/com7.c b/games/battlestar/com7.c
index d91c4be..ca86de8 100644
--- a/games/battlestar/com7.c
+++ b/games/battlestar/com7.c
@@ -72,7 +72,7 @@ fighton:
hurt = rnd(50)%(WEIGHT-carrying)-card(injuries,NUMOFINJURIES)-encumber - exhaustion;
else if (testbit(inven,KNIFE) || testbit(inven,MALLET) || testbit(inven,CHAIN) || testbit(inven,MACE) || testbit(inven,HALBERD))
hurt = rnd(15) - card(injuries,NUMOFINJURIES) - exhaustion;
- else
+ else
hurt = rnd(7) - encumber;
if (hurt < 5)
switch(rnd(3)){
@@ -233,7 +233,7 @@ fighton:
cypher();
time--;
break;
-
+
default:
puts("You don't have a chance, he is too quick.");
break;
diff --git a/games/battlestar/cypher.c b/games/battlestar/cypher.c
index 59ea6cc..ec02a79 100644
--- a/games/battlestar/cypher.c
+++ b/games/battlestar/cypher.c
@@ -79,19 +79,19 @@ cypher()
return(-1);
lflag = 0;
break;
-
+
case AHEAD:
if (!move(ahead, AHEAD))
return(-1);
lflag = 0;
break;
-
+
case BACK:
if (!move(back, BACK))
return(-1);
lflag = 0;
break;
-
+
case SHOOT:
if (wordnumber < wordcount && wordvalue[wordnumber+1] == EVERYTHING){
for (n=0; n < NUMOFOBJECTS; n++)
@@ -102,7 +102,7 @@ cypher()
wordnumber++;
wordnumber++;
}
- else
+ else
shoot();
break;
@@ -116,7 +116,7 @@ cypher()
wordnumber++;
wordnumber++;
}
- else
+ else
take(location[position].objects);
break;
@@ -131,7 +131,7 @@ cypher()
wordnumber++;
wordnumber++;
}
- else
+ else
drop("Dropped");
break;
@@ -146,7 +146,7 @@ cypher()
wordnumber = throw(wordvalue[wordnumber] == KICK ? "Kicked" : "Thrown");
}
wordnumber += 2;
- } else
+ } else
throw(wordvalue[wordnumber] == KICK ? "Kicked" : "Thrown");
break;
@@ -159,7 +159,7 @@ cypher()
}
wordnumber += 2;
}
- else
+ else
takeoff();
break;
@@ -174,7 +174,7 @@ cypher()
}
wordnumber += 2;
}
- else
+ else
draw();
break;
@@ -189,7 +189,7 @@ cypher()
}
wordnumber += 2;
}
- else
+ else
puton();
break;
@@ -203,7 +203,7 @@ cypher()
}
wordnumber += 2;
}
- else
+ else
wearit();
break;
@@ -218,7 +218,7 @@ cypher()
}
wordnumber += 2;
}
- else
+ else
eat();
break;
@@ -239,7 +239,7 @@ cypher()
}
else
puts("You aren't carrying anything.");
-
+
if (ucard(wear)){
puts("\nYou are wearing:\n");
for (n=0; n < NUMOFOBJECTS; n++)
@@ -272,7 +272,7 @@ cypher()
puts("\nYour match splutters out.");
matchlight = 0;
}
- } else
+ } else
puts("I can't see anything.");
return(-1);
break;
@@ -320,7 +320,7 @@ cypher()
else
puts("You aren't a wizard.");
break;
-
+
case SCORE:
printf("\tPLEASURE\tPOWER\t\tEGO\n");
printf("\t%3d\t\t%3d\t\t%3d\n\n",pleasure,power,ego);
@@ -373,7 +373,7 @@ cypher()
case LAUNCH:
if (!launch())
return(-1);
- else
+ else
lflag = 0;
break;
@@ -420,7 +420,7 @@ cypher()
return(-1);
break;
-
+
}
if (wordnumber < wordcount && *words[wordnumber++] == ',')
continue;
diff --git a/games/battlestar/externs.h b/games/battlestar/externs.h
index 76cf14a..ef66948 100644
--- a/games/battlestar/externs.h
+++ b/games/battlestar/externs.h
@@ -60,7 +60,7 @@
#define CONJ 5
/* words numbers */
-#define KNIFE 0
+#define KNIFE 0
#define SWORD 1
#define LAND 2
#define WOODSMAN 3
@@ -175,7 +175,7 @@
#define RIDE 1047
#define DRIVE 1048
#define SCORE 1049
-#define BURY 1050
+#define BURY 1050
#define JUMP 1051
#define KICK 1052
@@ -192,7 +192,7 @@
#define CANTLAUNCH 0
#define LAUNCHED 1
#define CANTSEE 2
-#define CANTMOVE 3
+#define CANTMOVE 3
#define JINXED 4
#define DUG 5
#define NUMOFNOTES 6
diff --git a/games/battlestar/getcom.c b/games/battlestar/getcom.c
index d852910..d441921 100644
--- a/games/battlestar/getcom.c
+++ b/games/battlestar/getcom.c
@@ -45,7 +45,7 @@ getcom(buf, size, prompt, error)
char *prompt, *error;
{
for (;;) {
- fputs(prompt, stdout);
+ fputs(prompt, stdout);
if (fgets(buf, size, stdin) == 0) {
clearerr(stdin);
continue;
diff --git a/games/battlestar/globals.c b/games/battlestar/globals.c
index c25b1c5..1e079aa 100644
--- a/games/battlestar/globals.c
+++ b/games/battlestar/globals.c
@@ -186,14 +186,14 @@ char *ouch[NUMOFINJURIES] = {
"a few broken ribs",
"a broken leg and torn ligaments",
"a broken back and ruptured spleen",
- "some deep incisions and a loss of blood",
+ "some deep incisions and a loss of blood",
"a fractured skull and mashed face",
"a broken neck"
};
int objwt[NUMOFOBJECTS] = {
1, 5, 0, 10, 15, 2, 10, 10,
- 3, 5, 50, 2500, 2, 1, 100, 1,
+ 3, 5, 50, 2500, 2, 1, 100, 1,
2, 1, 1, 1, 60, 10, 5, 0,
50, 5, 15, 5, 1, 20, 10, 10,
0, 0, 0, 0, 1, 0, 0, 1,
diff --git a/games/battlestar/room.c b/games/battlestar/room.c
index 6b33ebb..80fc2b2 100644
--- a/games/battlestar/room.c
+++ b/games/battlestar/room.c
@@ -79,7 +79,7 @@ struct room here;
ahead = here.north;
back = here.south;
break;
-
+
case SOUTH:
left = here.east;
right = here.west;
@@ -143,7 +143,7 @@ char option;
return("left");
case EAST:
return("ahead");
- case WEST:
+ case WEST:
return(option == '+' ? "behind you" : "back");
}
OpenPOWER on IntegriCloud