torpedo: Don't disclose uid, type, owner of torpedoed subs
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 11 Jan 2015 16:50:09 +0000 (17:50 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 2 Mar 2015 07:20:50 +0000 (08:20 +0100)
commit7b8700fe009d8ddc1574467baff1e271acf69c5d
treec7549c6a21937b5739deaa3b15537f001e9c77ba
parent2bfc574943af9fea9c380d9174848d81522ab5d0
torpedo: Don't disclose uid, type, owner of torpedoed subs

torp() reports target uid and type to the player.  Hide for submarine
targets, just like we hide attacking submarine details in bulletins to
the target's owner.

torp() and fire_torp() leak submarine owners through the news.
Suppress news for submarine targets.  This is consistent with fire:
mfir() doesn't report depth-charging, and quiet_bigdef() doesn't
report return torpedoes.

Historical note: the code has always hidden submarine uid, type and
owner in places, and leaked them in others.  When capability sub-torp
was added in Chainsaw, no attention was paid to hiding.  When Empire 2
hid attacking submarines, it did nothing for submarine targets.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/torp.c