]> git.pond.sub.org Git - empserver/commit
fire: Fix artillery splashing the bridge span under itself
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 7 Feb 2015 14:49:03 +0000 (15:49 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 2 Mar 2015 07:20:51 +0000 (08:20 +0100)
commitc88344dad43eb104c21a698baf16eabd75267b18
tree0fd078f2a03a8b0d29b2a2045a1f49098e7e0c86
parent48d8533443d9e17bf291f96ecbd4d3e04dbba4c5
fire: Fix artillery splashing the bridge span under itself

multifire() writes back the firing sector after applying damage.  When
an artillery unit on a bridge span commits suicide by shelling down
the supporting bridge heads, this writeback puts the bridge span right
back (less the land units and planes on it), triggering a seqno oops.
On the next update of the bridge head, the bridge span falls again.
Broken in commit fe5b266, v4.3.14.

The problematic write back is superfluous.  Remove it along with a few
equally superfluous ones.

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