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>
Sat, 23 Jan 2021 07:39:14 +0000 (08:39 +0100)
commitc347db0551be0d96f18d245e16e820ad2c87f67f
treefc3adee1a694453547533999aacfbbf85c6dac05
parent0b46e31d60f5b60f4dfca7df60574264f6713a3b
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