]> git.pond.sub.org Git - empserver/commit
bomb fire launch torpedo: Don't disclose ship sinking in retreat
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 Jan 2015 12:49:38 +0000 (13:49 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 Feb 2015 15:21:35 +0000 (16:21 +0100)
commit2294785412d3252eec31880341c3136f71888aac
tree5a8556924f9f7ac054dc6dcc7c492fb19a79f34a
parentf9316f71c4e52799e4788a6a8dfb355fb439b81c
bomb fire launch torpedo: Don't disclose ship sinking in retreat

These commands report "sunk!" even when the ship survives the attack
but sinks during retreat.  bomb even reports where on the retreat the
ship sinks.  Has been that way since retreat was added in Chainsaw.

Report "sunk!" only when the attack sinks the ship directly.

Similar code exists for land units, but it doesn't report killings.
Change it anyway, to keep it consistent with the ship code.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/retreat.h
src/lib/commands/bomb.c
src/lib/commands/laun.c
src/lib/commands/mfir.c
src/lib/commands/torp.c
src/lib/subs/retreat.c