]> git.pond.sub.org Git - empserver/commitdiff
(pin_bomb): Remove code to compute bestacc. It is not only wrong,
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 3 Oct 2005 20:03:45 +0000 (20:03 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 3 Oct 2005 20:03:45 +0000 (20:03 +0000)
bestacc is not used.  Been that way since Chainsaw.

src/lib/commands/bomb.c

index 81b0e010f2200cc87f419d89b9e1d5f38f5e84c3..bc289f78b3c8a555e83c29a439d078c8f11691f7 100644 (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)