#include <stdlib.h>
#include <string.h>
-void attakreport(bool curt)
+void attackreport(bool curt)
/* report status of bases under attack */
{
if (!curt) {
else
prout(_("There are %d bases."), game.inbase);
if (!damaged(DRADIO) || game.condition == docked || game.iseenit) {
- /* Don't report this if not seen and
- either the radio is dead or not at base! */
- attakreport(false);
+ // Don't report this if not seen and
+ // either the radio is dead or not at base!
+ attackreport(false);
game.iseenit = true;
}
if (game.casual)
}
}
-void dreprt(void)
+void damagereport(void)
/* damage report */
{
bool jdam = false;
);
RQ(11,
- attakreport(!req);
+ attackreport(!req);
);
#undef RQ
proutn(_("Time or arrival date? "));
if (scan()==IHREAL) {
ttime = aaitem;
- if (ttime > game.state.date) ttime -= game.state.date; // Actually a star date
+ if (ttime > game.state.date)
+ ttime -= game.state.date; // Actually a star date
if (ttime <= 1e-10 ||
(twarp=(floor(sqrt((10.0*game.dist)/ttime)*10.0)+1.0)/10.0) > 10) {
prout(_("We'll never make it, sir."));