/*
* 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
*
* ---
*
- * 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 "var.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)
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++;
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);
pr(" %d", plane.pln_load);
break;
case 14:
- pr(" %d", plane.pln_fuel);
+ pr(" %d", plchr[(int)plane.pln_type].pl_fuel);
break;
case 15:
pr(" %d", plane.pln_harden);
if ((plchr[(int)plane.pln_type].pl_flags & (P_O | P_M)) ==
P_O) {
pr(" %c",
- opt_ORBIT ? (plane.
- pln_flags & PLN_SYNCHRONOUS) ? 'Y' :
- 'N' : 'N');
+ (plane.pln_flags & PLN_SYNCHRONOUS) ? 'Y' : 'N');
} else
pr(" N");
break;
} else
pr(" N/A");
break;
-
case 21:
pr(" %c", plane.pln_flags & PLN_AIRBURST ? 'A' : 'G');
break;