The mission code doesn't treat SAMs specially: they take off, fly out,
maybe fight, fly home, and land. Landing triggers the oops in
pln_put1().
Letting SAMs escort makes no sense. Fix the mission command to reject
them.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
* Known contributors to this file:
* Thomas Ruschak, 1992
* Steve McClure, 2000
* Known contributors to this file:
* Thomas Ruschak, 1992
* Steve McClure, 2000
- * Markus Armbruster, 2005-2016
+ * Markus Armbruster, 2005-2021
struct plchrstr *pcp;
pcp = &plchr[(int)gp->type];
struct plchrstr *pcp;
pcp = &plchr[(int)gp->type];
+ if (pcp->pl_flags & P_M) {
+ pr("Missiles can't escort.\n"
+ "%s #%d is ineligible\n",
+ pcp->pl_name, gp->uid);
+ continue;
+ }
if (!(pcp->pl_flags & P_ESC) && !(pcp->pl_flags & P_F)) {
pr("Only planes with the escort or intercept abilities can escort.\n"
"%s #%d is ineligible\n",
if (!(pcp->pl_flags & P_ESC) && !(pcp->pl_flags & P_F)) {
pr("Only planes with the escort or intercept abilities can escort.\n"
"%s #%d is ineligible\n",