Rename plane_caps() to pln_caps() and give it external linkage

This commit is contained in:
Markus Armbruster 2009-03-08 17:14:59 +01:00
parent fa03ba9aad
commit f760150d8f
3 changed files with 22 additions and 19 deletions

View file

@ -391,6 +391,25 @@ pln_capable(struct plnstr *pp, int wantflags, int nowantflags)
return 1;
}
/*
* Return union of capabilities of planes in LIST.
*/
int
pln_caps(struct emp_qelem *list)
{
struct emp_qelem *qp;
struct plist *plp;
int fl;
fl = 0;
for (qp = list->q_forw; qp != list; qp = qp->q_forw) {
plp = (struct plist *)qp;
fl |= plp->pcp->pl_flags;
}
return fl;
}
/*
* Find plane types that can operate from carrier SP.
* If MSL find missile types, else non-missile types.