]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/ldump.c
Update copyright notice
[empserver] / src / lib / commands / ldump.c
index 9d9bdbcbf7b6d6af6743cbfa158a9c6e92debb62..daaceaa2a1742c4b9942976da85816a9bbda967f 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -26,7 +26,7 @@
  *  ---
  *
  *  ldump.c: Dump land unit information
- * 
+ *
  *  Known contributors to this file:
  *     John Yockey, 1997
  *     Steve McClure, 1998
@@ -49,7 +49,7 @@ ldump(void)
     struct natstr *np;
     time_t now;
 
-    if (!snxtitem(&ni, EF_LAND, player->argp[1]))
+    if (!snxtitem(&ni, EF_LAND, player->argp[1], NULL))
        return RET_SYN;
     prdate();
     nunits = 0;
@@ -299,9 +299,6 @@ ldump(void)
            continue;
        if (!player->owner && !player->god)
            continue;
-       count_land_planes(&land);
-       lnd_count_units(&land);
-
        nunits++;
        if (player->god)
            pr("%d ", land.lnd_own);
@@ -337,10 +334,7 @@ ldump(void)
                pr(" %d", land.lnd_item[I_FOOD]);
                break;
            case 10:
-               if (opt_FUEL)
-                   pr(" %d", land.lnd_fuel);
-               else
-                   pr(" 0");
+               pr(" 0");
                break;
            case 11:
                pr(" %d", land.lnd_tech);
@@ -349,13 +343,13 @@ ldump(void)
                pr(" %d", land.lnd_retreat);
                break;
            case 13:
-               pr(" %d", land.lnd_rad_max);
+               pr(" 0");
                break;
            case 14:
-               pr(" %d", land.lnd_nxlight);
+               pr(" %d", lnd_nxlight(&land));
                break;
            case 15:
-               pr(" %d", land.lnd_nland);
+               pr(" %d", lnd_nland(&land));
                break;
            case 16:
                pr(" %d", land.lnd_land);