]> git.pond.sub.org Git - empserver/commitdiff
Remove superfluous variable ip from bomb()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 27 Sep 2009 13:20:10 +0000 (09:20 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 8 Dec 2009 07:15:51 +0000 (08:15 +0100)
src/lib/commands/bomb.c

index 66a30e1df2c6754c3db21da29ce685a85664f9b4..4179ea328bf570ecd7a8e2e71036a7aadb7ffe9a 100644 (file)
@@ -85,7 +85,6 @@ bomb(void)
     coord tx, ty;
     coord ax, ay;
     int ap_to_target;
-    struct ichrstr *ip;
     char flightpath[MAX_PATH_LEN];
     struct nstr_item ni_bomb;
     struct nstr_item ni_esc;
@@ -122,7 +121,6 @@ bomb(void)
     (void)pathtoxy(flightpath, &tx, &ty, fcost);
     pr("target sector is %s\n", xyas(tx, ty, player->cnum));
     getsect(tx, ty, &target);
-    ip = NULL;
     ap_to_target = strlen(flightpath);
     if (flightpath[ap_to_target - 1] == 'h')
        ap_to_target--;
@@ -137,7 +135,7 @@ bomb(void)
     /*
      * now arm and equip the bombers, transports, whatever.
      */
-    pln_arm(&bomb_list, 2 * ap_to_target, mission, ip);
+    pln_arm(&bomb_list, 2 * ap_to_target, mission, NULL);
     if (QEMPTY(&bomb_list)) {
        pr("No planes could be equipped for the mission.\n");
        return RET_FAIL;