Initially, paradrop capability was implied both by capability cargo
and by capability VTOL. Chainsaw changed para() to require cargo, and
added compile-time option PARAFLAG to additionally require new
capability para. The optional PARAFLAG rule became mandatory in
Empire 2.
Chainsaw left the old tests for "cargo or VTOL" in place. Because
para() checked "cargo and para" first, the old tests for "cargo or
VTOL" always passed, so they had no effect.
Clean them up anyway.
att_combat_init(off, EF_PLANE);
for (qp = list->q_forw; qp != list; qp = qp->q_forw) {
plp = (struct plist *)qp;
- if (plp->pcp->pl_flags & (P_V | P_C))
- off->troops += plp->misc;
+ off->troops += plp->misc;
}
off->mil = off->troops;
if (att_abort(A_PARA, off, def)) {
needed = (load * 2) / ip->i_lbs;
break;
case 'a': /* paradrop */
- if ((pcp->pl_flags & (P_V | P_C)) == 0)
+ if (!(pcp->pl_flags & P_P))
break;
itype = I_MILIT;
needed = load / ichr[I_MILIT].i_lbs;
needed = (load * 2) / ichr[I_SHELL].i_lbs;
break;
case 'a': /* paradrop */
- if ((pcp->pl_flags & (P_V | P_C)) == 0)
+ if (!(pcp->pl_flags & P_P))
break;
itype = I_MILIT;
needed = load / ichr[I_MILIT].i_lbs;