]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/miss.c
mission: Fix an error message pasto going back to Chainsaw 3
[empserver] / src / lib / commands / miss.c
index 6b864a05e08c993a84971fb8ed46cef4bc4b6bb8..c050664785aa2d106f7c678bea91d84bd589ead8 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2018, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
@@ -29,7 +29,7 @@
  *  Known contributors to this file:
  *     Thomas Ruschak, 1992
  *     Steve McClure, 2000
- *     Markus Armbruster, 2005-2016
+ *     Markus Armbruster, 2005-2021
  */
 
 #include <config.h>
@@ -211,7 +211,7 @@ mission(void)
 
            pcp = &plchr[(int)gp->type];
            if (!(pcp->pl_flags & P_F)) {
-               pr("Only planes with the intercept abilities can perform air defense.\n"
+               pr("Only planes with the intercept ability can perform air defense.\n"
                   "%s #%d is ineligible\n",
                   pcp->pl_name, gp->uid);
                continue;
@@ -222,6 +222,12 @@ mission(void)
            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",