non-"super" version Matuszek and Reynolds wrote.)
* Code to hurl you out of quadrant if a supernova occurs as you warp in
- seems to hang.
+ seems to hang. One bad case is when you get stopped by a star.
{
while (i-- > 0) {
if (game.options & OPTION_CURSES) {
- proutn("\n\r");
+ proutn("\n");
} else {
linecount++;
if (linecount >= rows)
rechart();
if (lastchart < game.state.date && condit == IHDOCKED) {
- proutn("Spock- \"I revised the Star Chart from the starbase's records.\"\n");
+ prout("Spock- \"I revised the Star Chart from the starbase's records.\"");
rechart();
}
- if (nn == 0) proutn(" STAR CHART FOR THE KNOWN GALAXY\n");
+ if (nn == 0) prout(" STAR CHART FOR THE KNOWN GALAXY");
if (game.state.date > lastchart)
prout("(Last surveillance update %d stardates ago).",
(int)(game.state.date-lastchart));
proutn(" ");
}
proutn(" |");
- if (i<GALSIZE) proutn("\n");
+ if (i<GALSIZE) skip(1);
}
- prout(""); /* flush output */
}
static void sectscan(int goodScan, int i, int j)
}
if (rightside)
status(jj);
- if (i<sizeof(requests)/sizeof(requests[0])) proutn("\n");
+ if (i<sizeof(requests)/sizeof(requests[0])) skip(1);
if (req!=0) return(goodScan);
}
prout("");
if (distq < 6.0*(BASEMAX+1-inbase) && Rand() < 0.75) {
contflag = TRUE;
#ifdef DEBUG
- proutn("DEBUG: Abandoning base #%d at %d-%d\n", i, ix, iy);
+ prout("DEBUG: Abandoning base #%d at %d-%d", i, ix, iy);
#endif
break;
}
#ifdef DEBUG
else if (distq < 6.0 * (BASEMAX+1-inbase)) {
- proutn("DEBUG: saving base #%d, close to #%d\n", i, j);
+ prout("DEBUG: saving base #%d, close to #%d", i, j);
}
#endif
}
int klump = (1.0 - r*r)*klumper;
if (klump > krem) klump = krem;
krem -= klump;
- do iran(GALSIZE,&ix,&iy); while (game.state.galaxy[ix][iy].supernova);
+ do iran(GALSIZE,&ix,&iy);
+ while (game.state.galaxy[ix][iy].supernova ||
+ game.state.galaxy[ix][iy].klingons + klump > 9);
game.state.galaxy[ix][iy].klingons += klump;
} while (krem > 0);
// Position Klingon Commander Ships
chasing SCom can take an eternity).
5. Probe target you enter is now the destination quadrant. Before I don't
- remember what it was, but it was something I had difficulty using)
+ remember what it was, but it was something I had difficulty using.
6. Secret password is now autogenerated.
}
chew();
}
+ proutn("Induce supernova here? ");
+ if (ja() != 0) {
+ game.state.galaxy[quadx][quady].supernova = TRUE;
+ atover(1);
+ }
}
#endif