]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/pboa.c
Update copyright notice
[empserver] / src / lib / commands / pboa.c
index 975c921a837c0adc00d56fb38d84aa99f4c4e548..4d0b689b65190ab7d15fe259a67d1b75c0a2ea39 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-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 <config.h>
+
+#include "commands.h"
 #include "plane.h"
 
 int
 pboa(void)
 {
-    struct  sctstr  sect;
+    struct sctstr sect;
     struct nstr_item np;
-    struct  plnstr  plane;
+    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;
+       if (sect.sct_own != player->cnum)
+           continue;
        takeover_plane(&plane, player->cnum);
     }
     return RET_OK;
 }
-