]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/land.c
Fix trailing whitespace
[empserver] / src / lib / commands / land.c
index 3985c09bac19f59ab948628ea2dd80921655df21..b2adc8b6cc92fa02a35a39021ba9599bfa23a605 100644 (file)
@@ -26,7 +26,7 @@
  *  ---
  *
  *  land.c: List land units
- * 
+ *
  *  Known contributors to this file:
  *     Steve McClure, 1998
  */
@@ -44,7 +44,7 @@ land(void)
     struct nstr_item ni;
     struct lndstr land;
 
-    if (!snxtitem(&ni, EF_LAND, player->argp[1]))
+    if (!snxtitem(&ni, EF_LAND, player->argp[1], NULL))
        return RET_SYN;
 
     nunits = noff = 0;
@@ -53,9 +53,6 @@ land(void)
            continue;
        if (!player->owner && !player->god)
            continue;
-       count_land_planes(&land);
-       lnd_count_units(&land);
-
        if (nunits++ == 0) {
            if (player->god)
                pr("own ");
@@ -78,8 +75,8 @@ land(void)
        pr("%4d ", land.lnd_tech);
        pr("%3d%%", land.lnd_retreat);
        pr("%3d", land.lnd_rad_max);
-       pr("%3d", land.lnd_nxlight);
-       pr("%3d", land.lnd_nland);
+       pr("%3d", lnd_nxlight(&land));
+       pr("%3d", lnd_nland(&land));
        if (land.lnd_ship >= 0)
            pr(" %4dS", land.lnd_ship);
        else if (land.lnd_land >= 0)