arm: Rework "cannot carry nukes" test for robustness
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 11 May 2018 16:57:47 +0000 (18:57 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Jan 2021 20:24:29 +0000 (21:24 +0100)
commite5ea07b61a3c123527aaaa11d4a34c61126b58d0
tree0727199fcd8b433163365dd48b3a09a53c2d85fc
parent0d6130246cc91051bc0d04e144a3a93c1371dfe4
arm: Rework "cannot carry nukes" test for robustness

We reject satellites, ABMs, anti-ship missiles, and SAMs.  That's
enumerating badness.  More robust replacement: accept only bomber,
tactical, cargo, except for anti-ship missiles.

Throw in PLN_LAUNCHED sanity checking while there.

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