(spy): Catching a spy makes contact.
This commit is contained in:
parent
82a4008000
commit
e617eba026
1 changed files with 6 additions and 3 deletions
|
@ -161,8 +161,10 @@ spy(void)
|
||||||
wu(0, own, "%s (#%d) spy deported from %s\n",
|
wu(0, own, "%s (#%d) spy deported from %s\n",
|
||||||
cname(player->cnum), player->cnum,
|
cname(player->cnum), player->cnum,
|
||||||
xyas(nx, ny, own));
|
xyas(nx, ny, own));
|
||||||
|
if (opt_HIDDEN)
|
||||||
|
setcont(own, player->cnum, FOUND_SPY);
|
||||||
} else if (relat < NEUTRAL && caught) {
|
} else if (relat < NEUTRAL && caught) {
|
||||||
/* at-war with spy-ee */
|
/* hostile spy-ee */
|
||||||
pr("BANG!! A spy was shot in %s\n",
|
pr("BANG!! A spy was shot in %s\n",
|
||||||
xyas(nx, ny, player->cnum));
|
xyas(nx, ny, player->cnum));
|
||||||
military--;
|
military--;
|
||||||
|
@ -171,6 +173,8 @@ spy(void)
|
||||||
cname(player->cnum), player->cnum,
|
cname(player->cnum), player->cnum,
|
||||||
xyas(nx, ny, own));
|
xyas(nx, ny, own));
|
||||||
nreport(player->cnum, N_SPY_SHOT, own, 1);
|
nreport(player->cnum, N_SPY_SHOT, own, 1);
|
||||||
|
if (opt_HIDDEN)
|
||||||
|
setcont(own, player->cnum, FOUND_SPY);
|
||||||
} else {
|
} else {
|
||||||
insert(table, &t_len, nx, ny);
|
insert(table, &t_len, nx, ny);
|
||||||
spyline(&dsect);
|
spyline(&dsect);
|
||||||
|
@ -179,10 +183,9 @@ spy(void)
|
||||||
dchr[dsect.sct_type].d_mnem, 0);
|
dchr[dsect.sct_type].d_mnem, 0);
|
||||||
prunits(dsect.sct_x, dsect.sct_y);
|
prunits(dsect.sct_x, dsect.sct_y);
|
||||||
prplanes(dsect.sct_x, dsect.sct_y);
|
prplanes(dsect.sct_x, dsect.sct_y);
|
||||||
if (opt_HIDDEN) {
|
if (opt_HIDDEN)
|
||||||
setcont(player->cnum, own, FOUND_SPY);
|
setcont(player->cnum, own, FOUND_SPY);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* If you have a recon unit, it'll
|
* If you have a recon unit, it'll
|
||||||
* see the sector anyway...
|
* see the sector anyway...
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue