]> git.pond.sub.org Git - empserver/commit
damage: Shield embarked planes and land units from sector damage
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 10 May 2018 15:55:50 +0000 (17:55 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:41:28 +0000 (10:41 +0100)
commit7d8e2aed16b99e987bdeac80b8a9809607e3892c
tree1c48fe0e0b8539cb1563703310e9b7769937cb34
parentb109430b8ccbb83d5e3d7c4b53b169b47b036780
damage: Shield embarked planes and land units from sector damage

Damage to a ship or land unit, say via pinpoint bombing, doesn't
damage loaded planes and land units.

Damage to a sector, say via strategic bombing, doesn't damage ships
there, but it does damage planes, even when loaded on a land unit (but
not when loaded on a ship), and land units, even when loaded on a land
unit or a ship.

This makes no sense.  Sector damage spills over to land units that way
since Chainsaw 3 added them, and to planes since 4.0.9.

Change sectdamage() not to damage land units and planes loaded on
ships or land units.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/sectdamage.c
tests/fire/final.xdump
tests/fire/journal.log
tests/retreat/final.xdump
tests/retreat/journal.log