]> git.pond.sub.org Git - empserver/commit
subs: Maintain plane and land unit fortification invariant
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 11 May 2018 05:58:34 +0000 (07:58 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:40:34 +0000 (10:40 +0100)
commit8b9ce7be4386c3bd30786d25b34da99b35e4cce3
treec75d2aa519ba61865193ac21894ba1baef029ec4
parentf5514cb452743cc7e0f750895dc4ba6b734083b1
subs: Maintain plane and land unit fortification invariant

Make lnd_prewrite() and pln_prewrite() ensure that land units and
missiles loaded on a land unit or ship are never fortified / hardened.

This takes care of edit neglecting to zap fortification on load.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/land.c
src/lib/subs/plane.c
tests/actofgod/final.xdump
tests/actofgod/geninput.pl