]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/pdump.c
Update copyright notice
[empserver] / src / lib / commands / pdump.c
index 880b166981055671222cc119d3ce27e2205f7efb..b019683bcbd60a1a18f4a5180d7153ceaf602507 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2004, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -19,9 +19,9 @@
  *
  *  ---
  *
- *  See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
- *  related information and legal notices. It is expected that any future
- *  projects/authors will amend these files as needed.
+ *  See files README, COPYING and CREDITS in the root of the source
+ *  tree for related information and legal notices.  It is expected
+ *  that future projects/authors will amend these files as needed.
  *
  *  ---
  *
  *     Steve McClure, 1998
  */
 
-#include "misc.h"
-#include "player.h"
-#include "xy.h"
-#include "plane.h"
-#include "nsc.h"
+#include <config.h>
+
+#include "commands.h"
 #include "nuke.h"
-#include "file.h"
-#include "nat.h"
 #include "optlist.h"
-#include "commands.h"
+#include "plane.h"
 
 int
 pdump(void)
@@ -200,7 +196,7 @@ pdump(void)
 
     nplanes = 0;
     natp = getnatp(player->cnum);
-    while (nxtitem(&np, (s_char *)&plane)) {
+    while (nxtitem(&np, &plane)) {
        if (!player->owner || plane.pln_own == 0)
            continue;
        nplanes++;
@@ -220,10 +216,7 @@ pdump(void)
                pr(" %d", yrel(natp, plane.pln_y));
                break;
            case 4:
-               if (plane.pln_wing == ' ')
-                   pr(" ~");
-               else
-                   pr(" %c", plane.pln_wing);
+               pr(" %c", plane.pln_wing ? plane.pln_wing : '~');
                break;
            case 5:
                pr(" %d", plane.pln_effic);
@@ -275,7 +268,8 @@ pdump(void)
            case 19:
                if ((plchr[(int)plane.pln_type].pl_flags & (P_O | P_M)) ==
                    P_O) {
-                   pr(" %c", (plane.pln_flags & PLN_SYNCHRONOUS) ? 'Y' : 'N');
+                   pr(" %c",
+                      (plane.pln_flags & PLN_SYNCHRONOUS) ? 'Y' : 'N');
                } else
                    pr(" N");
                break;
@@ -286,7 +280,6 @@ pdump(void)
                } else
                    pr(" N/A");
                break;
-
            case 21:
                pr(" %c", plane.pln_flags & PLN_AIRBURST ? 'A' : 'G');
                break;