Remove unused missions from mission_pln_equip()
This commit is contained in:
parent
528df9acba
commit
b0ba9022dc
1 changed files with 1 additions and 23 deletions
|
@ -901,39 +901,17 @@ mission_pln_equip(struct plist *plp, struct ichrstr *ip, char mission)
|
||||||
load = pln_load(pp);
|
load = pln_load(pp);
|
||||||
itype = I_NONE;
|
itype = I_NONE;
|
||||||
switch (mission) {
|
switch (mission) {
|
||||||
case 's': /* strategic bomb */
|
|
||||||
case 'p': /* pinpoint bomb */
|
case 'p': /* pinpoint bomb */
|
||||||
if (nuk_on_plane(pp) >= 0)
|
if (nuk_on_plane(pp) >= 0)
|
||||||
break;
|
break;
|
||||||
itype = I_SHELL;
|
itype = I_SHELL;
|
||||||
break;
|
break;
|
||||||
case 't': /* transport */
|
|
||||||
if (!(pcp->pl_flags & P_C) || !ip)
|
|
||||||
break;
|
|
||||||
itype = ip->i_uid;
|
|
||||||
load *= 2;
|
|
||||||
break;
|
|
||||||
case 'd': /* drop */
|
|
||||||
if (!(pcp->pl_flags & P_C) || CANT_HAPPEN(!ip))
|
|
||||||
break;
|
|
||||||
itype = ip->i_uid;
|
|
||||||
if (pcp->pl_flags & P_V)
|
|
||||||
load *= 2;
|
|
||||||
break;
|
|
||||||
case 'a': /* paradrop */
|
|
||||||
if (!(pcp->pl_flags & P_P))
|
|
||||||
break;
|
|
||||||
itype = I_MILIT;
|
|
||||||
if (pcp->pl_flags & P_V)
|
|
||||||
load *= 2;
|
|
||||||
break;
|
|
||||||
case 'i': /* missile interception */
|
case 'i': /* missile interception */
|
||||||
if (load)
|
if (load)
|
||||||
itype = I_SHELL;
|
itype = I_SHELL;
|
||||||
break;
|
break;
|
||||||
case 'r': /* reconnaissance */
|
|
||||||
case 'e': /* escort */
|
case 'e': /* escort */
|
||||||
case 0: /* plane interception */
|
case 0: /* plane interception */
|
||||||
load = 0;
|
load = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue