summaryrefslogtreecommitdiffstats
path: root/games/battlestar/com1.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/battlestar/com1.c')
-rw-r--r--games/battlestar/com1.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/games/battlestar/com1.c b/games/battlestar/com1.c
index c14f941..09fddc3 100644
--- a/games/battlestar/com1.c
+++ b/games/battlestar/com1.c
@@ -41,11 +41,16 @@ static const char rcsid[] =
#include "externs.h"
-move(thataway, token)
+void convert __P((int));
+
+int
+battlestar_move(thataway, token)
int thataway, token;
{
wordnumber++;
- if ((!notes[CANTMOVE] && !notes[LAUNCHED]) || testbit(location[position].objects, LAND) || fuel > 0 && notes[LAUNCHED])
+ if ((!notes[CANTMOVE] && !notes[LAUNCHED]) ||
+ ((testbit(location[position].objects, LAND) || fuel > 0) &&
+ notes[LAUNCHED]))
if (thataway) {
position = thataway;
newway(token);
@@ -64,6 +69,7 @@ int thataway, token;
return(1);
}
+void
convert(tothis) /* Converts day to night and vice versa. */
int tothis; /* Day objects are permanent. Night objects are added*/
{ /* at dusk, and subtracted at dawn. */
@@ -87,6 +93,7 @@ int tothis; /* Day objects are permanent. Night objects are added*/
}
}
+void
news()
{
int n;
@@ -96,7 +103,7 @@ news()
puts("An explosion of shuddering magnitude splinters bulkheads and");
puts("ruptures the battlestar's hull. You are sucked out into the");
puts("frozen void of space and killed.");
- die();
+ die(0);
}
if (gtime > 20 && position < 32)
puts("Explosions rock the battlestar.");
@@ -193,7 +200,7 @@ news()
}
if (injuries[SKULL] && injuries[INCISE] && injuries[NECK]){
puts("I'm afraid you have suffered fatal injuries.");
- die();
+ die(0);
}
for (n=0; n < NUMOFINJURIES; n++)
if (injuries[n] == 1){
@@ -221,6 +228,7 @@ news()
notes[CANTMOVE] = 0;
}
+void
crash()
{
int hurt1,hurt2;
@@ -234,7 +242,7 @@ crash()
if (!location[position].down){
puts("Your viper strikes the ground and explodes into firey fragments.");
puts("Thick black smoke billows up from the wreckage.");
- die();
+ die(0);
}
position = location[position].down;
}
OpenPOWER on IntegriCloud