/*
* 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
*
* ---
*
- * 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, §);
- if (sect.sct_own != player->cnum) continue;
+ if (sect.sct_own != player->cnum)
+ continue;
takeover_plane(&plane, player->cnum);
}
return RET_OK;
}
-