Mission 'n' was removed along with nuke_bomb() many years ago.
Simplify accordingly.
struct shpstr ship;
struct sctstr sect;
i_type itype;
- int rval;
short *item;
pp = &plp->plane;
return -1;
}
item[I_PETROL] -= pcp->pl_fuel;
- rval = 0;
if (!(flags & P_F)) {
load = pln_load(pp);
itype = I_NONE;
itype = I_MILIT;
needed = load / ip->i_lbs;
break;
- case 'n':
- if (pp->pln_nuketype == -1)
- rval = -1;
- break;
case 'i': /* missile interception */
if (load) {
itype = I_SHELL;
default:
break;
}
- if (rval < 0 || (itype != I_NONE && needed <= 0)) {
+ if (itype != I_NONE && needed <= 0)
return -1;
- }
if (itype != I_NONE) {
if (itype == I_SHELL && item[itype] < needed)
item[itype] += supply_commod(plp->plane.pln_own,
putland(land.lnd_uid, &land);
else
putsect(§);
- return rval;
+ return 0;
}
/*
struct shpstr ship;
struct sctstr sect;
i_type itype;
- int rval;
short *item;
int own;
int abandon_needed;
return -1;
}
item[I_PETROL] -= pcp->pl_fuel;
- rval = 0;
if ((flags & P_F) == 0) {
load = pln_load(pp);
itype = I_NONE;
itype = I_MILIT;
needed = load / ip->i_lbs;
break;
- case 'n':
- if (pp->pln_nuketype == -1)
- rval = -1;
- break;
default:
break;
}
- if (rval < 0 || (itype != I_NONE && needed <= 0)) {
+ if (itype != I_NONE && needed <= 0) {
pr("%s can't contribute to mission\n", prplane(pp));
return -1;
}
}
putsect(§);
}
- return rval;
+ return 0;
}
void