(notify_coastguard): Failed to make contact when NF_COASTWATCH was
off.
This commit is contained in:
parent
61d1afdde9
commit
e36134038a
1 changed files with 6 additions and 11 deletions
|
@ -591,17 +591,12 @@ notify_coastguard(struct emp_qelem *list, int trange, struct sctstr *sectp)
|
||||||
if (vrange < trange)
|
if (vrange < trange)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* We got here, so we could theoretically see the ship. Now,
|
|
||||||
* do we want to see it in our telebox? If not, return positive
|
|
||||||
* since we could see the ship and want forts to fire. */
|
|
||||||
if (!(natp->nat_flags & NF_COASTWATCH))
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
for (qp = list->q_back; qp != list; qp = next) {
|
for (qp = list->q_back; qp != list; qp = next) {
|
||||||
next = qp->q_back;
|
next = qp->q_back;
|
||||||
mlp = (struct mlist *)qp;
|
mlp = (struct mlist *)qp;
|
||||||
if (mlp->mcp->m_flags & M_SUB)
|
if (mlp->mcp->m_flags & M_SUB)
|
||||||
continue;
|
continue;
|
||||||
|
if (natp->nat_flags & NF_COASTWATCH)
|
||||||
wu(0, sectp->sct_own,
|
wu(0, sectp->sct_own,
|
||||||
"%s %s sighted at %s\n",
|
"%s %s sighted at %s\n",
|
||||||
cname(mlp->ship.shp_own),
|
cname(mlp->ship.shp_own),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue