From ee6927122cc3fcfcd73fed0aaeec54667c227be9 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 14 Jun 2008 17:40:57 +0200 Subject: [PATCH] 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. --- src/lib/commands/spy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/commands/spy.c b/src/lib/commands/spy.c index 291ab46b..4ae5711f 100644 --- a/src/lib/commands/spy.c +++ b/src/lib/commands/spy.c @@ -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 */