Rename ac_planedamage() argument show to flak
Parameter name "show" is misleading since the previous commit: non-zero no longer shows anything, only suppresses output.
This commit is contained in:
parent
16b16e34b3
commit
22834d6793
1 changed files with 3 additions and 3 deletions
|
@ -525,8 +525,8 @@ ac_dog(struct plist *ap, struct plist *dp)
|
||||||
* call. (this has caused bugs in the past)
|
* call. (this has caused bugs in the past)
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
ac_planedamage(struct plist *plp, natid from, int dam,
|
ac_planedamage(struct plist *plp, natid from, int dam, int flak,
|
||||||
int show, char *mesg)
|
char *mesg)
|
||||||
{
|
{
|
||||||
struct plnstr *pp;
|
struct plnstr *pp;
|
||||||
int disp;
|
int disp;
|
||||||
|
@ -549,7 +549,7 @@ ac_planedamage(struct plist *plp, natid from, int dam,
|
||||||
} else if (eff < 80 && chance((80 - eff) / 100.0)) {
|
} else if (eff < 80 && chance((80 - eff) / 100.0)) {
|
||||||
snprintf(mesg, 14, " aborted @%2d%%", eff);
|
snprintf(mesg, 14, " aborted @%2d%%", eff);
|
||||||
disp = 2;
|
disp = 2;
|
||||||
} else if (show == 0)
|
} else if (!flak)
|
||||||
snprintf(mesg, 14, " cleared");
|
snprintf(mesg, 14, " cleared");
|
||||||
|
|
||||||
pp->pln_effic = eff;
|
pp->pln_effic = eff;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue