/*
* 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.
*
* ---
*
* Jeff Bailey
*/
-#include "misc.h"
-#include "player.h"
-#include "xy.h"
-#include "plane.h"
-#include "land.h"
-#include "nsc.h"
-#include "file.h"
-#include "nat.h"
+#include <config.h>
+
#include "commands.h"
+#include "land.h"
+#include "plane.h"
int
range(void)
struct nstr_item np;
struct plnstr plane;
int i;
- s_char *p;
- s_char buf[1024];
+ char *p;
+ char buf[1024];
if (!snxtitem(&np, EF_PLANE, player->argp[1]))
return RET_SYN;
- while (nxtitem(&np, (s_char *)&plane)) {
+ while (nxtitem(&np, &plane)) {
if (!player->owner || plane.pln_own == 0)
continue;
p = getstarg(player->argp[2], "New range? ", buf);
continue;
plane.pln_range = (plane.pln_range_max < i) ?
plane.pln_range_max : i;
- pr("Plane %d range changed to %d\n", plane.pln_uid,
- plane.pln_range);
+ pr("Plane %d range changed to %d\n",
+ plane.pln_uid, plane.pln_range);
putplane(plane.pln_uid, &plane);
}
struct lndstr land;
struct lchrstr *lcp;
int i;
- s_char *p;
- s_char prompt[128];
- s_char buf[128];
+ char *p;
+ char prompt[128];
+ char buf[1024];
if (!snxtitem(&np, EF_LAND, player->argp[1]))
return RET_SYN;
- while (nxtitem(&np, (s_char *)&land)) {
+ while (nxtitem(&np, &land)) {
if (!player->owner || land.lnd_own == 0)
continue;
lcp = &lchr[(int)land.lnd_type];
if ((i = atoi(p)) < 0)
continue;
land.lnd_rad_max = (i < land.lnd_rad) ? i : land.lnd_rad;
- pr("%s reaction radius changed to %d\n", prland(&land),
- land.lnd_rad_max);
+ pr("%s reaction radius changed to %d\n",
+ prland(&land), land.lnd_rad_max);
putland(land.lnd_uid, &land);
}