game.damage[l] -= (game.damage[l]-repair > 0.0 ? repair : game.damage[l]);
/* If radio repaired, update star chart and attack reports */
if (radio_was_broken && game.damage[DRADIO] == 0.0) {
game.damage[l] -= (game.damage[l]-repair > 0.0 ? repair : game.damage[l]);
/* If radio repaired, update star chart and attack reports */
if (radio_was_broken && game.damage[DRADIO] == 0.0) {
if (game.state.remcom) {
int maxloop = game.state.remcom, l;
for (l = 1; l <= maxloop; l++) {
if (game.state.remcom) {
int maxloop = game.state.remcom, l;
for (l = 1; l <= maxloop; l++) {
/* destroy Romulans and planets in supernovaed quadrant */
nrmdead = game.state.galaxy[nqx][nqy].romulans;
game.state.galaxy[nqx][nqy].romulans = 0;
/* destroy Romulans and planets in supernovaed quadrant */
nrmdead = game.state.galaxy[nqx][nqy].romulans;
game.state.galaxy[nqx][nqy].romulans = 0;
if (insx) {
game.state.starkl += game.state.galaxy[nqx][nqy].stars;
game.state.basekl += game.state.galaxy[nqx][nqy].starbase;
if (insx) {
game.state.starkl += game.state.galaxy[nqx][nqy].stars;
game.state.basekl += game.state.galaxy[nqx][nqy].starbase;
condit == IHDOCKED)
game.state.galaxy[nqx][nqy].supernova = TRUE;
/* If supernova destroys last klingons give special message */
condit == IHDOCKED)
game.state.galaxy[nqx][nqy].supernova = TRUE;
/* If supernova destroys last klingons give special message */
skip(2);
if (insx == 0) prout("Lucky you!");
proutn("A supernova in %s has just destroyed the last Klingons.",
skip(2);
if (insx == 0) prout("Lucky you!");
proutn("A supernova in %s has just destroyed the last Klingons.",