Remove superfluous variable ip from bomb()

This commit is contained in:
Markus Armbruster 2009-09-27 09:20:10 -04:00
parent 0fe43096bc
commit 15d355521a

View file

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