]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/lten.c
Update copyright notice
[empserver] / src / lib / commands / lten.c
index 32fd31e3e627e006ee90d7022abb8bea8eed4048..ae1ab8a3d5383d2f0485b845b73032611207a034 100644 (file)
@@ -1,11 +1,11 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
- *                           Ken Stevens, Steve McClure
+ *  Copyright (C) 1986-2016, 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/>.
  *
  *  ---
  *
@@ -27,7 +26,7 @@
  *
  *  lten.c: Transfer commodity from a ship to a land unit the ship is
  *          carrying
- * 
+ *
  *  Known contributors to this file:
  *     Dave Pare, 1986
  *     Thomas Ruschak
@@ -41,7 +40,6 @@
 #include "item.h"
 #include "land.h"
 #include "plague.h"
-#include "plane.h"
 #include "ship.h"
 
 static void expose_land(struct shpstr *s1, struct lndstr *l1);
@@ -74,8 +72,7 @@ ltend(void)
     while (nxtitem(&tenders, &tender)) {
        if (!player->owner)
            continue;
-       if ((p =
-            getstarg(player->argp[3], "Amount to transfer? ", buf)) == 0)
+       if (!(p = getstarg(player->argp[3], "Amount to transfer? ", buf)))
            return RET_FAIL;
        if (!check_ship_ok(&tender))
            return RET_FAIL;
@@ -107,8 +104,7 @@ ltend(void)
                continue;
            ontarget = target.lnd_item[ip->i_uid];
            if (ontarget == 0 && amt < 0) {
-               pr("No %s on %s\n",
-                  ip->i_name, prland(&target));
+               pr("No %s on %s\n", ip->i_name, prland(&target));
                continue;
            }
            lbase = &lchr[(int)target.lnd_type];