Clean up outmoded tests for paradrop capability

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.
This commit is contained in:
Markus Armbruster 2009-09-27 10:55:33 -04:00
parent 062a42fb7b
commit df1ca95a2a
3 changed files with 3 additions and 4 deletions

View file

@ -666,7 +666,7 @@ pln_equip(struct plist *plp, struct ichrstr *ip, char mission)
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;