From 5a7670d9be1b948898c1aaaf6b946c6c86a8992f Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 3 Oct 2005 20:03:45 +0000 Subject: [PATCH] (pin_bomb): Remove code to compute bestacc. It is not only wrong, bestacc is not used. Been that way since Chainsaw. --- src/lib/commands/bomb.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/commands/bomb.c b/src/lib/commands/bomb.c index 81b0e010f..bc289f78b 100644 --- a/src/lib/commands/bomb.c +++ b/src/lib/commands/bomb.c @@ -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) -- 2.43.0