Fix making contact by spotting planes from sectors

ac_encounter() passed MAXNOC instead of the sector owner to setcont(),
and setcont() does nothing for such an argument.  Screwed up from the
start, in commit 144c7cb5, v4.2.22.
This commit is contained in:
Markus Armbruster 2008-09-23 20:53:15 -04:00
parent 99cf705530
commit ee1e0ab0e1

View file

@ -209,7 +209,7 @@ ac_encounter(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
PR(sect.sct_own, "%s planes spotted over %s\n", PR(sect.sct_own, "%s planes spotted over %s\n",
cname(plane_owner), xyas(x, y, sect.sct_own)); cname(plane_owner), xyas(x, y, sect.sct_own));
if (opt_HIDDEN) if (opt_HIDDEN)
setcont(cn, plane_owner, FOUND_FLY); setcont(sect.sct_own, plane_owner, FOUND_FLY);
} }
if (!evaded) { if (!evaded) {