]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/mslsub.c
launch interception: Drop support for ABM, a-sat consuming shells
[empserver] / src / lib / subs / mslsub.c
index 8ca0483c5e4876143a9b1cdc2fd9168dd5164087..8b35e6d2a35e4003b5363159ef05d125cdfcded5 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2016, 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
  *  Known contributors to this file:
  *     Ken Stevens, 1995
  *     Steve McClure, 1996-2000
- *     Markus Armbruster, 2004-2012
+ *     Markus Armbruster, 2004-2021
  */
 
 #include <config.h>
 
 #include <stdlib.h>
 #include "chance.h"
-#include "file.h"
 #include "misc.h"
 #include "nat.h"
 #include "news.h"
@@ -164,7 +163,7 @@ msl_hit(struct plnstr *pp, int hardtarget, int type,
     } else {
        hitchance = pln_hitchance(pp, hardtarget, type);
        hit = pct_chance(hitchance);
-       mpr(pp->pln_own, "\t%d%% hitchance...%s\n", hitchance,
+       mpr(pp->pln_own, "\t%d%% hit chance...%s\n", hitchance,
            hit ? "HIT!" : "miss");
     }
 
@@ -258,7 +257,7 @@ msl_intercept(struct plnstr *msl, struct sctstr *sp, int sublaunch,
        pp = &ip->plane;
        if (pp->pln_own != sp->sct_own)
            continue;
-       if (mission_pln_equip(ip, NULL, 'i') < 0) {
+       if (mission_pln_equip(ip, NULL, 0) < 0) {
            emp_remque(qp);
            free(qp);
            continue;
@@ -276,7 +275,7 @@ msl_intercept(struct plnstr *msl, struct sctstr *sp, int sublaunch,
        next = qp->q_forw;
        ip = (struct plist *)qp;
        pp = &ip->plane;
-       if (mission_pln_equip(ip, NULL, 'i') < 0) {
+       if (mission_pln_equip(ip, NULL, 0) < 0) {
            emp_remque(qp);
            free(qp);
            continue;