]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/pdump.c
Update copyright notice.
[empserver] / src / lib / commands / pdump.c
index 8f949aebdbb319d88b5a56d523062173bfe5d960..3cd8a9223f9391e84f5fb4627c3282a05d33d292 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2004, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -124,7 +124,7 @@ pdump(void)
     if (player->god)
        pr("   ");
     time(&now);
-    pr("DUMP PLANES %d\n", now);
+    pr("DUMP PLANES %ld\n", (long)now);
     if (player->god)
        pr("own ");
     pr("id");
@@ -206,13 +206,13 @@ pdump(void)
            continue;
        nplanes++;
        if (player->god)
-           pr("%3d ", plane.pln_own);
+           pr("%d ", plane.pln_own);
        pr("%d", np.cur);
        n = 0;
        while (field[n]) {
            switch (field[n++]) {
            case 1:
-               pr(" %0.4s", plchr[(int)plane.pln_type].pl_name);
+               pr(" %.4s", plchr[(int)plane.pln_type].pl_name);
                break;
            case 2:
                pr(" %d", xrel(natp, plane.pln_x));
@@ -285,7 +285,7 @@ pdump(void)
                break;
            case 20:
                if (plane.pln_nuketype != -1) {
-                   pr(" %0.5s", nchr[(int)plane.pln_nuketype].n_name);
+                   pr(" %.5s", nchr[(int)plane.pln_nuketype].n_name);
                    break;
                } else
                    pr(" N/A");