]> git.pond.sub.org Git - empserver/commitdiff
Rename ac_planedamage() argument show to flak
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 16 Jun 2010 19:24:00 +0000 (21:24 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 18 Jul 2010 06:34:45 +0000 (08:34 +0200)
Parameter name "show" is misleading since the previous commit:
non-zero no longer shows anything, only suppresses output.

src/lib/subs/aircombat.c

index e2a2d64134fdfa1e767be3dc896f33db2ee27334..e21ce687c612a6771974e139599a36296a969a7f 100644 (file)
@@ -525,8 +525,8 @@ ac_dog(struct plist *ap, struct plist *dp)
  * call.  (this has caused bugs in the past)
  */
 static void
-ac_planedamage(struct plist *plp, natid from, int dam,
-              int show, char *mesg)
+ac_planedamage(struct plist *plp, natid from, int dam, int flak,
+              char *mesg)
 {
     struct plnstr *pp;
     int disp;
@@ -549,7 +549,7 @@ ac_planedamage(struct plist *plp, natid from, int dam,
     } else if (eff < 80 && chance((80 - eff) / 100.0)) {
        snprintf(mesg, 14, " aborted @%2d%%", eff);
        disp = 2;
-    } else if (show == 0)
+    } else if (!flak)
        snprintf(mesg, 14, " cleared");
 
     pp->pln_effic = eff;