mission: Don't permit marine missiles on support missions
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 4 Jan 2021 09:29:29 +0000 (10:29 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Jan 2021 20:24:29 +0000 (21:24 +0100)
Marine missiles can't actually support, see perform_mission().  Make
the mission command reject them.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/miss.c

index c050664785aa2d106f7c678bea91d84bd589ead8..23b620588acee13ee9450420c1198f891707509b 100644 (file)
@@ -241,7 +241,7 @@ mission(void)
            struct plchrstr *pcp;
 
            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"
                   "%s #%d is ineligible\n",
                   pcp->pl_name, gp->uid);