]> git.pond.sub.org Git - empserver/commit
navigate march: Stop on non-fatal mine hits, too
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 5 Jan 2015 19:23:46 +0000 (20:23 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 2 Mar 2015 07:20:47 +0000 (08:20 +0100)
commitc5c6fc8a668ac7dbbeb3e4d23fbcbfaa15252f85
tree21c65a5c51f2c4a1a31fbd62d8fa4bc928fcfd4f
parent0538f95cd6095125e63542b192e57fdfdcaf5d01
navigate march: Stop on non-fatal mine hits, too

We stop on mine hits only when they're fatal.  Has always been that
way.  When interdiction was added in Chainsaw, it worked the same.
Empire 2 changed the commands to stop on any interdiction damage.  Now
stop on any mine damage, too.

Interdiction can fail to do damage (all bombs miss), and mines can be
detected without damage (by sweeping).  Perhaps we should stop then as
well.  Left for another day.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/lndsub.c
src/lib/subs/shpsub.c
tests/navi-march/01-navigate-1
tests/navi-march/02-march-1
tests/navi-march/journal.log