]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/rang.c
Update copyright notice
[empserver] / src / lib / commands / rang.c
index 47d6336919b2a0a9a292b6c21aeff82bdd96e914..19c2b61251b130ec6d7ac9cbd4003ef27dfed3e8 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2005, 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.
  *
  *  ---
  *
  *     Jeff Bailey
  */
 
-#include "misc.h"
-#include "player.h"
-#include "plane.h"
-#include "land.h"
-#include "nsc.h"
-#include "file.h"
+#include <config.h>
+
 #include "commands.h"
+#include "land.h"
+#include "plane.h"
 
 int
 range(void)
@@ -45,8 +43,8 @@ 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;
@@ -60,8 +58,8 @@ range(void)
            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);
     }
@@ -76,9 +74,9 @@ lrange(void)
     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;
@@ -94,8 +92,8 @@ lrange(void)
        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);
     }