News reported victim as actor for sub-launched anti-sat and ABM

If the intercepted missile was sub-launched as well, this disclosed
its owner.

The stock game's anti-sats and ABMs can't be sub-launched.
This commit is contained in:
Markus Armbruster 2009-10-13 19:33:33 -04:00
parent 4dbee9a388
commit e7fec28009
2 changed files with 7 additions and 2 deletions

View file

@ -294,13 +294,17 @@ msl_intercept(struct plnstr *msl, struct sctstr *sp, int sublaunch,
def_name, who, att_name, cname(sp->sct_own));
}
if (msl_hit(pp, pln_def(msl), EF_PLANE, news_item, news_item,
if (msl_hit(pp, pln_def(msl), EF_PLANE, 0, 0,
att_name, sp->sct_x, sp->sct_y, msl->pln_own)) {
mpr(msl->pln_own, "%s destroyed by %s %s!\n",
att_name, cname(pp->pln_own), def_name);
mpr(sp->sct_own, "%s %s intercepted!\n", who, att_name);
if (sp->sct_own != pp->pln_own)
mpr(pp->pln_own, "%s %s intercepted!\n", who, att_name);
if (sublaunch)
nreport(pp->pln_own, news_item, 0, 1);
else
nreport(pp->pln_own, news_item, msl->pln_own, 1);
destroyed = 1;
}
/* zap the missile */