]> git.pond.sub.org Git - empserver/commitdiff
Remove key 'd' at bomb ship, plane and land unit target prompts
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 2 Aug 2008 22:26:12 +0000 (18:26 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 3 Aug 2008 01:23:07 +0000 (21:23 -0400)
Key 'd' has always been there, but never documented.  Key '~' does the
same, and the prompt mentions it since 4.2.2.  Drop 'd'.

src/lib/commands/bomb.c

index 7440793ca4db4748b10ef55069625b8e47a5dacf..13991377944eb416c89ce28a3adeabdd32404847 100644 (file)
@@ -500,8 +500,6 @@ ship_bomb(struct emp_qelem *list, struct sctstr *target)
                    shipsatxy(target->sct_x, target->sct_y, 0, M_SUB, 0);
                continue;
            }
-           if (*q == 'd')
-               goto next;
            if (!isdigit(*q))
                continue;
            n = atoi(q);
@@ -582,8 +580,6 @@ ship_bomb(struct emp_qelem *list, struct sctstr *target)
               xyas(target->sct_x, target->sct_y, player->cnum));
        }
        collateral_damage(target->sct_x, target->sct_y, dam / 2);
-      next:
-       ;
     }
     free_shiplist(&head);
 }
@@ -630,8 +626,6 @@ plane_bomb(struct emp_qelem *list, struct sctstr *target)
                planesatxy(target->sct_x, target->sct_y, 0, 0);
                continue;
            }
-           if (*q == 'd')
-               goto next;
            n = atoi(q);
            if (n < 0)
                continue;
@@ -690,8 +684,6 @@ plane_bomb(struct emp_qelem *list, struct sctstr *target)
               xyas(target->sct_x, target->sct_y, own));
        putplane(plane.pln_uid, &plane);
        collateral_damage(target->sct_x, target->sct_y, dam);
-      next:
-       ;
     }
 }
 
@@ -736,8 +728,6 @@ land_bomb(struct emp_qelem *list, struct sctstr *target)
                unitsatxy(target->sct_x, target->sct_y, 0, 0);
                continue;
            }
-           if (*q == 'd')
-               goto next;
            n = atoi(q);
            if (n < 0)
                continue;
@@ -796,8 +786,6 @@ land_bomb(struct emp_qelem *list, struct sctstr *target)
        nreport(player->cnum, N_UNIT_BOMB, own, 1);
        putland(land.lnd_uid, &land);
        collateral_damage(target->sct_x, target->sct_y, dam);
-      next:
-       ;
     }
 }