(pin_bomb): Remove code to compute bestacc. It is not only wrong,

bestacc is not used.  Been that way since Chainsaw.
This commit is contained in:
Markus Armbruster 2005-10-03 20:03:45 +00:00
parent 130338aece
commit 5a7670d9be

View file

@ -203,7 +203,6 @@ pin_bomb(struct emp_qelem *list, struct sctstr *target)
s_char *p;
struct plist *plp;
struct emp_qelem *qp;
int bestacc;
int nsubs;
int nunits;
struct natstr *natp;
@ -219,11 +218,6 @@ pin_bomb(struct emp_qelem *list, struct sctstr *target)
nsubs = 0;
plp = (struct plist *)list->q_forw;
if (plp->pcp->pl_flags & P_A) {
bestacc = 0;
for (qp = list->q_forw; qp != list; qp = qp->q_forw)
plp = (struct plist *)qp;
if (plp->plane.pln_acc < bestacc)
bestacc = plp->plane.pln_acc;
nships = num_shipsatxy(target->sct_x, target->sct_y, 0, 0);
nsubs = nships - shipsatxy(target->sct_x, target->sct_y, 0, M_SUB);
if (nsubs > 0)