]> git.pond.sub.org Git - empserver/commit
unload lunload: Fail early when carrier can't carry land units
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Sep 2017 04:53:37 +0000 (06:53 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 06:25:18 +0000 (07:25 +0100)
commit585e9540cee72f89eef87f3043a9ec9ad29bc43b
tree0ff8e7b432b7313ded429bb7b50299cd4bccee26
parent8de59d0014c861e312dac385ed477e21693717bd
unload lunload: Fail early when carrier can't carry land units

Attempting to unload land units from a carrier that can't carry any
prompts for land units to unload, while attempting to unload planes or
load land units or planes fails without prompting.

Fix this inconsistency by making unload and lunload fail early for
land units, just like they do for planes.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/load.c
tests/load-tend/01-load-1
tests/load-tend/journal.log