* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)dumpme.c 5.1 (Berkeley) %G%";
** Dump the starship somewhere in the galaxy
** Parameter is zero if bounce off of negative energy barrier,
** one if through a black hole
** Note that the quadrant is NOT initialized here. This must
** be done from the calling routine.
** Repair of devices must be deferred.
register struct event
*e
;
Ship
.quadx
= ranf(NQUADS
);
Ship
.quady
= ranf(NQUADS
);
Ship
.sectx
= ranf(NSECTS
);
Ship
.secty
= ranf(NSECTS
);
printf("%s falls into a black hole.\n", Ship
.shipname
);
printf("Computer applies full reverse power to avoid hitting the\n");
printf(" negative energy barrier. A space warp was entered.\n");
/* bump repair dates forward */
for (i
= 0; i
< MAXEVENTS
; i
++)
if (e
->evcode
!= E_FIXDV
)
reschedule(e
, (e
->date
- Now
.date
) + x
);
printf("You are now in quadrant %d,%d. It is stardate %.2f\n",
Ship
.quadx
, Ship
.quady
, Now
.date
);