Remove superfluous parenthesis.

This commit is contained in:
Markus Armbruster 2007-12-13 21:32:34 +00:00
parent 799ca210ff
commit cc791bcbe2
3 changed files with 4 additions and 4 deletions

View file

@ -168,7 +168,7 @@ budg(void)
pr("Estimated delta\t\t\t\t\t\t %+10d\n", income - expenses);
pr("Estimated new treasury%s\n",
dotsprintf(buf, "%50d", np->nat_money + income - expenses));
if (((np->nat_money + income - expenses) < 0) && !player->god) {
if (np->nat_money + income - expenses < 0 && !player->god) {
pr("After processsing sectors, you will be broke!\n");
pr("Sectors will not produce, distribute, or deliver!\n\n");
}

View file

@ -103,7 +103,7 @@ hard(void)
if (hcm <= n)
n = hcm;
pln.pln_harden += n;
player->dolcost += (5.0 * n);
player->dolcost += 5.0 * n;
putplane(pln.pln_uid, &pln);
sect.sct_item[I_HCM] = hcm - n;
putsect(&sect);

View file

@ -1136,7 +1136,7 @@ att_combat_eff(struct combat *com)
eff = com->eff / 100.0;
if (com->own == player->cnum) {
str = com->sct_dcp->d_ostr;
eff = 1.0 + ((str - 1.0) * eff);
eff = 1.0 + (str - 1.0) * eff;
} else
eff = sector_strength(getsectp(com->x, com->y));
} else if (com->type == EF_SHIP && com->own != player->cnum) {
@ -2314,7 +2314,7 @@ ask_move_in(struct combat *off, struct emp_qelem *olist,
continue;
sprintf(prompt, "Move in with %s (%c %d%%) [ynYNq?] ",
prland(&llp->unit.land),
llp->unit.land.lnd_army ? llp->unit.land.lnd_army : '~',
llp->unit.land.lnd_army ? llp->unit.land.lnd_army : '~',
llp->unit.land.lnd_effic);
*answerp = att_prompt(prompt, llp->unit.land.lnd_army);
if (player->aborted || att_get_combat(def, 0) < 0)