]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/sstat.c
Update copyright notice
[empserver] / src / lib / commands / sstat.c
index 0498e1b1017228bee976efce9b2e14831eeee8ee..925cc2615d22f4b869e4b4814d851fe803c3ab76 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-2009, 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 @@
  *  ---
  *
  *  sstat.c: Show the stats of your ships
- * 
+ *
  *  Known contributors to this file:
  *     Steve McClure, 1996
  */
@@ -44,16 +44,13 @@ sstat(void)
     struct nstr_item ni;
     struct shpstr ship;
 
-    if (!snxtitem(&ni, EF_SHIP, player->argp[1]))
+    if (!snxtitem(&ni, EF_SHIP, player->argp[1], NULL))
        return RET_SYN;
 
     nships = 0;
     while (nxtitem(&ni, &ship)) {
        if (!player->owner || ship.shp_own == 0)
            continue;
-       count_planes(&ship);
-       count_units(&ship);
-
        if (nships++ == 0) {
            pr("shp# %22.22s    x,y    eff  tech def spd vis rng fir\n",
               "ship-type");