]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/laun.c
Update known contributors comments
[empserver] / src / lib / commands / laun.c
index c4553398c902cf48eccd82f463cf9929317e163e..26f4f75da0e3271660e236a6ff96fb9e4d66495b 100644 (file)
@@ -1,11 +1,11 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
- *                           Ken Stevens, Steve McClure
+ *  Copyright (C) 1986-2011, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *                Ken Stevens, Steve McClure, Markus Armbruster
  *
- *  This program is free software; you can redistribute it and/or modify
+ *  Empire is free software: you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  the Free Software Foundation, either version 3 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,
@@ -14,8 +14,7 @@
  *  GNU General Public License for more details.
  *
  *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *
  *  ---
  *
@@ -31,7 +30,7 @@
  *     Dave Pare, 1986
  *     Ken Stevens, 1995
  *     Steve McClure, 1998-2000
- *     Markus Armbruster, 2005-2009
+ *     Markus Armbruster, 2005-2011
  */
 
 #include <config.h>
@@ -182,8 +181,6 @@ launch_missile(struct plnstr *pp)
     struct mchrstr *mcp;
     struct shpstr target_ship;
     struct sctstr sect;
-    int rel;
-    struct natstr *natp;
     struct nukstr nuke;
     char buf[1024];
 
@@ -201,8 +198,7 @@ launch_missile(struct plnstr *pp)
            return RET_FAIL;
        }
        n = atoi(cp);
-       if ((n < 0) || !getship(n, &target_ship) ||
-           !target_ship.shp_own) {
+       if ((n < 0) || !getship(n, &target_ship) || !target_ship.shp_own) {
            pr("Bad ship number!\n");
            return RET_FAIL;
        }
@@ -231,18 +227,6 @@ launch_missile(struct plnstr *pp)
        if (msl_equip(pp, 's') < 0)
            return RET_FAIL;
        getsect(sx, sy, &sect);
-       if (opt_SLOW_WAR) {
-           natp = getnatp(player->cnum);
-           rel = getrel(natp, sect.sct_own);
-           if ((rel != AT_WAR) && (sect.sct_own != player->cnum) &&
-               (sect.sct_own) && (sect.sct_oldown != player->cnum)) {
-               pr("You are not at war with the player->owner of the target sector!\n");
-               pr_beep();
-               pr("Kaboom!!!\n");
-               pr("Missile monitoring officer destroys RV before detonation.\n");
-               return RET_OK;
-           }
-       }
        if (msl_launch(pp, EF_SECTOR, "sector", sx, sy, sect.sct_own,
                       &sublaunch) < 0)
            return RET_OK;