Rename plane_caps() to pln_caps() and give it external linkage
This commit is contained in:
parent
fa03ba9aad
commit
f760150d8f
3 changed files with 22 additions and 19 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue