Fix spy to make contact when spy succeeds due to recon unit

If you have a recon unit, you get a spy report whether the spy is
caught or not.  But you made contact only when he wasn't caught.  Fix
that.
This commit is contained in:
Markus Armbruster 2008-06-14 17:40:57 +02:00
parent 3e251b474f
commit ee6927122c

View file

@ -192,6 +192,8 @@ spy(void)
dchr[dsect.sct_type].d_mnem, 0);
prunits(dsect.sct_x, dsect.sct_y);
prplanes(dsect.sct_x, dsect.sct_y);
if (opt_HIDDEN)
setcont(player->cnum, own, FOUND_SPY);
}
}
/* subtract any military if necessary */