These missions imply the cargo type, just like bombing missions. Use
the implied type instead of cargo type parameter ip there. Parameter
ip is now optional except for missions 't' (transport) and 'd' (drop).
Simplify para() not to pass the optional cargo type. Leave drop()
alone, because always passing the type is simpler there.
/*
* now arm and equip the bombers, transports, whatever.
*/
- pln_arm(&bomb_list, 2 * ap_to_target, 'a', &ichr[I_MILIT]);
+ pln_arm(&bomb_list, 2 * ap_to_target, 'a', NULL);
if (QEMPTY(&bomb_list)) {
pr("No planes could be equipped for the mission.\n");
return RET_FAIL;
if ((pcp->pl_flags & (P_V | P_C)) == 0)
break;
itype = I_MILIT;
- needed = load / ip->i_lbs;
+ needed = load / ichr[I_MILIT].i_lbs;
break;
case 'i': /* missile interception */
if (load) {
if ((pcp->pl_flags & P_MINE) == 0)
break;
itype = I_SHELL;
- needed = (load * 2) / ip->i_lbs;
+ needed = (load * 2) / ichr[I_SHELL].i_lbs;
break;
case 'a': /* paradrop */
if ((pcp->pl_flags & (P_V | P_C)) == 0)
break;
itype = I_MILIT;
- needed = load / ip->i_lbs;
+ needed = load / ichr[I_MILIT].i_lbs;
break;
case 'r': /* reconnaissance */
case 'e': /* escort */