]> git.pond.sub.org Git - empserver/blobdiff - src/lib/subs/border.c
Update copyright notice.
[empserver] / src / lib / subs / border.c
index 2046959e3d85fdb257ec187919614ae7247c49d3..d06143efa4c80cae0f20c7912eee68754455762c 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-2007, 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.
  *
  *  ---
  *
  *     
  */
 
-#include "misc.h"
-#include "nat.h"
-#include "file.h"
-#include "xy.h"
-#include "prototypes.h"
+#include <config.h>
+
+#include "map.h"
 #include "optlist.h"
+#include "prototypes.h"
+#include "xy.h"
 
 void
-border(struct range *rp, s_char *prefstr, s_char *sep)
+border(struct range *rp, char *prefstr, char *sep)
 
                                /* prefixes each line */
                                /* separates the numbers */
 {
-    register int posi;
-    register int n;
-    register int x;
+    int posi, n, x;
 
     if ((WORLD_X / 2) >= 100) {
        if (rp->lx + rp->width > 99 || rp->hx - rp->width < -99) {
            /*
             * hundreds
             */
-           pr(prefstr);
+           pr("%s", prefstr);
            for (x = rp->lx, n = 0; n < rp->width; n++, x++) {
                if (x >= WORLD_X / 2)
                    x -= WORLD_X;
-               pr(sep);
+               pr("%s", sep);
                if (x < 0 && x > -100) {
                    pr("-");
                } else {
@@ -71,11 +69,11 @@ border(struct range *rp, s_char *prefstr, s_char *sep)
     /*
      * tens
      */
-    pr(prefstr);
+    pr("%s", prefstr);
     for (x = rp->lx, n = 0; n < rp->width; n++, x++) {
        if (x >= WORLD_X / 2)
            x -= WORLD_X;
-       pr(sep);
+       pr("%s", sep);
        if (x < 0 && x > -10) {
            pr("-");
        } else {
@@ -87,7 +85,7 @@ border(struct range *rp, s_char *prefstr, s_char *sep)
     /*
      * units...
      */
-    pr(prefstr);
+    pr("%s", prefstr);
     for (x = rp->lx, n = 0; n < rp->width; n++, x++) {
        if (x >= WORLD_X / 2)
            x -= WORLD_X;