finald = distance(w, game.ks[m]);
game.kavgd[m] = 0.5 * (finald + game.kdist[m]);
}
finald = distance(w, game.ks[m]);
game.kavgd[m] = 0.5 * (finald + game.kdist[m]);
}
game.quadrant.x = (w.x+(QUADSIZE-1))/QUADSIZE;
game.quadrant.y = (w.y+(QUADSIZE-1))/QUADSIZE;
game.sector.x = w.x - QUADSIZE*(game.quadrant.x-1);
game.quadrant.x = (w.x+(QUADSIZE-1))/QUADSIZE;
game.quadrant.y = (w.y+(QUADSIZE-1))/QUADSIZE;
game.sector.x = w.x - QUADSIZE*(game.quadrant.x-1);
/* No quadrant change -- compute new avg enemy distances */
game.quad[game.sector.x][game.sector.y] = game.ship;
if (game.nenhere) {
/* No quadrant change -- compute new avg enemy distances */
game.quad[game.sector.x][game.sector.y] = game.ship;
if (game.nenhere) {
finald = distance(w, game.ks[m]);
game.kavgd[m] = 0.5 * (finald+game.kdist[m]);
game.kdist[m] = finald;
}
finald = distance(w, game.ks[m]);
game.kavgd[m] = 0.5 * (finald+game.kdist[m]);
game.kdist[m] = finald;
}
(is_scheduled(FCDBAS) || game.isatb == 1) && !game.iseenit) {
/* get attack report from base */
prout(_("Lt. Uhura- \"Captain, an important message from the starbase:\""));
(is_scheduled(FCDBAS) || game.isatb == 1) && !game.iseenit) {
/* get attack report from base */
prout(_("Lt. Uhura- \"Captain, an important message from the starbase:\""));
/*
* This program originally required input in terms of a (clock)
* direction and distance. Somewhere in history, it was changed to
/*
* This program originally required input in terms of a (clock)
* direction and distance. Somewhere in history, it was changed to
* "manual" input should still be done this way -- it's a real
* pain if the computer isn't working! Manual mode is still confusing
* because it involves giving x and y motions, yet the coordinates
* "manual" input should still be done this way -- it's a real
* pain if the computer isn't working! Manual mode is still confusing
* because it involves giving x and y motions, yet the coordinates
100.0*game.optime/game.state.remtime);
prout(_(" percent of our"));
proutn(_(" remaining time. Are you sure this is wise?\" "));
100.0*game.optime/game.state.remtime);
prout(_(" percent of our"));
proutn(_(" remaining time. Are you sure this is wise?\" "));
- /* Likewise, if in the original time the Galileo was abandoned, but
- was on ship earlier, it would have vanished -- lets restore it */
+ // Likewise, if in the original time the Galileo was abandoned, but
+ // was on ship earlier, it would have vanished -- let's restore it.
if (game.iscraft == offship && !gotit && game.damage[DSHUTTL] >= 0.0) {
prout(_("Checkov- \"Security reports the Galileo has reappeared in the dock!\""));
game.iscraft = onship;
if (game.iscraft == offship && !gotit && game.damage[DSHUTTL] >= 0.0) {
prout(_("Checkov- \"Security reports the Galileo has reappeared in the dock!\""));
game.iscraft = onship;
-** Abandon Ship
-**
-** The ship is abandoned. If your current ship is the Faire
-** Queene, or if your shuttlecraft is dead, you're out of
-** luck. You need the shuttlecraft in order for the captain
-** (that's you!!) to escape.
-**
-** Your crew can beam to an inhabited starsystem in the
-** quadrant, if there is one and if the transporter is working.
-** If there is no inhabited starsystem, or if the transporter
-** is out, they are left to die in outer space.
-**
-** If there are no starbases left, you are captured by the
-** Klingons, who torture you mercilessly. However, if there
-** is at least one starbase, you are returned to the
-** Federation in a prisoner of war exchange. Of course, this
-** can't happen unless you have taken some prisoners.
-**
-*/
+ * Abandon Ship
+ *
+ * The ship is abandoned. If your current ship is the Faire
+ * Queene, or if your shuttlecraft is dead, you're out of
+ * luck. You need the shuttlecraft in order for the captain
+ * (that's you!!) to escape.
+ *
+ * Your crew can beam to an inhabited starsystem in the
+ * quadrant, if there is one and if the transporter is working.
+ * If there is no inhabited starsystem, or if the transporter
+ * is out, they are left to die in outer space.
+ *
+ * If there are no starbases left, you are captured by the
+ * Klingons, who torture you mercilessly. However, if there
+ * is at least one starbase, you are returned to the
+ * Federation in a prisoner of war exchange. Of course, this
+ * can't happen unless you have taken some prisoners.
+ *
+ */
prout(_("Remainder of ship's complement beam down"));
prout(_("to nearest habitable planet."));
} else if (q->planet != NOPLANET && !damaged(DTRANSP)) {
prout(_("Remainder of ship's complement beam down"));
prout(_("to nearest habitable planet."));
} else if (q->planet != NOPLANET && !damaged(DTRANSP)) {
game.sector.x = 3.0*Rand() - 1.0 + game.base.x;
game.sector.y = 3.0*Rand() - 1.0 + game.base.y;
if (VALID_SECTOR(game.sector.x, game.sector.y) &&
game.quad[game.sector.x][game.sector.y] == IHDOT) break;
}
game.sector.x = 3.0*Rand() - 1.0 + game.base.x;
game.sector.y = 3.0*Rand() - 1.0 + game.base.y;
if (VALID_SECTOR(game.sector.x, game.sector.y) &&
game.quad[game.sector.x][game.sector.y] == IHDOT) break;
}