mission: Don't permit marine missiles on support missions

Marine missiles can't actually support, see perform_mission().  Make
the mission command reject them.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2021-01-04 10:29:29 +01:00
parent 8a65621275
commit a677cc31d7

View file

@ -241,7 +241,7 @@ mission(void)
struct plchrstr *pcp; struct plchrstr *pcp;
pcp = &plchr[(int)gp->type]; pcp = &plchr[(int)gp->type];
if (!(pcp->pl_flags & P_T)) { if ((pcp->pl_flags & (P_T | P_MAR)) != P_T) {
pr("Only planes with the tactical ability can support.\n" pr("Only planes with the tactical ability can support.\n"
"%s #%d is ineligible\n", "%s #%d is ineligible\n",
pcp->pl_name, gp->uid); pcp->pl_name, gp->uid);