]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/laun.c
launch interception: Drop support for ABM, a-sat consuming shells
[empserver] / src / lib / commands / laun.c
index b7ca97416868520f0ae5870e47151fda73eb5bea..7a78c4e5c6ee37667cd1fc9a56791461dbcab03c 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
@@ -30,7 +30,7 @@
  *     Dave Pare, 1986
  *     Ken Stevens, 1995
  *     Steve McClure, 1998-2000
- *     Markus Armbruster, 2005-2018
+ *     Markus Armbruster, 2005-2021
  */
 
 #include <config.h>
@@ -151,7 +151,7 @@ launch_as(struct plnstr *pp)
        pr("Range too great!\n");
        return RET_FAIL;
     }
-    if (msl_equip(pp, 'i') < 0)
+    if (msl_equip(pp, 0) < 0)
        return RET_FAIL;
     if (msl_launch(pp, EF_PLANE, prplane(&plane),
                   plane.pln_x, plane.pln_y, plane.pln_own, NULL) < 0)
@@ -277,7 +277,7 @@ launch_missile(struct plnstr *pp)
        if (target_ship.shp_effic < SHIP_MINEFF)
            pr("%s sunk!\n", prship(&target_ship));
        if (dam && (target_ship.shp_rflags & RET_INJURED))
-           retreat_ship(&target_ship, target_ship.shp_own, 'i');
+           retreat_ship(&target_ship, target_ship.shp_own);
        putship(target_ship.shp_uid, &target_ship);
     }
     return RET_OK;