if (iquad==IHDOT) continue;
/* hit something */
setwnd(message_window);
- skip(1); /* start new line after text track */
+ if (damaged(DSRSENS) && !game.condition==docked)
+ skip(1); /* start new line after text track */
switch(iquad) {
case IHE: /* Hit our ship */
case IHF:
/* Added mv to allow enemy to "move" before dying */
int i,j;
- skip(1);
crmena(true, type, sector, mv);
/* Decide what kind of enemy it is and update appropriately */
if (type == IHR) {
double targ[4][3], course[4];
double r, dummy;
int key, n, i;
- bool osuabor;
game.ididit = false;
}
game.ididit = true;
/* Loop for moving <n> torpedoes */
- osuabor = false;
- for (i = 1; i <= n && !osuabor; i++) {
+ for (i = 1; i <= n; i++) {
if (game.condition != docked) game.torps--;
r = (Rand()+Rand())*0.5 -0.5;
if (fabs(r) >= 0.47) {
skip(1);
if (i < n)
prout(_(" Remainder of burst aborted."));
- osuabor = true;
if (Rand() <= 0.2) {
prout(_("***Photon tubes damaged by misfire."));
game.damage[DPHOTON] = game.damfac*(1.0+2.0*Rand());
- break;
}
+ break;
}
if (game.shldup || game.condition == docked)
r *= 1.0 + 0.0001*game.shield;
}
if (key != IHREAL && game.nenhere != 0) {
prout(_("Phasers locked on target. Energy available: %.2f"),
- ifast?game.energy-200.0:game.energy,1,2);
+ ifast?game.energy-200.0:game.energy);
}
irec=0;
do {
chew();
key = IHEOL;
if (damaged(DCOMPTR))
- prout(_("Battle computer damaged, manual file only."));
+ prout(_("Battle computer damaged, manual fire only."));
else {
skip(1);
prouts(_("---WORKING---"));
else /* decide whether or not to emasculate klingon */
if (kpow > 0 && Rand() >= 0.9 &&
kpow <= ((0.4 + 0.4*Rand())*kpini)) {
- prout(_("***Mr. Spock- \"Captain, the vessel at "),
+ prout(_("***Mr. Spock- \"Captain, the vessel at %s"),
cramlc(sector, w));
prout(_(" has just lost its firepower.\""));
game.kpower[kk] = -kpow;