]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/pboa.c
Update copyright notice
[empserver] / src / lib / commands / pboa.c
index 1957a91373b6347516f6545247d050272d48d8fe..4d0b689b65190ab7d15fe259a67d1b75c0a2ea39 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-2010, 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.
  *
  *  ---
  *
  *     John Yockey, 2001
  */
 
-#include "misc.h"
-#include "file.h"
-#include "sect.h"
-#include "plane.h"
+#include <config.h>
+
 #include "commands.h"
+#include "plane.h"
 
 int
 pboa(void)
@@ -44,10 +43,9 @@ pboa(void)
     struct nstr_item np;
     struct plnstr plane;
 
-    if (!snxtitem(&np, EF_PLANE, player->argp[1]))
+    if (!snxtitem(&np, EF_PLANE, player->argp[1], NULL))
        return RET_SYN;
-    np.flags = 0;
-    while (nxtitem(&np, (s_char *)&plane)) {
+    while (nxtitem(&np, &plane)) {
        getsect(plane.pln_x, plane.pln_y, &sect);
        if (sect.sct_own != player->cnum)
            continue;