]> git.pond.sub.org Git - empserver/commit
ltend: Fail more nicely when land unit isn't on tender
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 12 Sep 2017 08:04:25 +0000 (10:04 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 06:25:17 +0000 (07:25 +0100)
commiteb5ed8802a9ffbcfc081d39655c690e6a4e3b172
treea6ae230e573b13199eab1a1c9ca6b59c5cf22290
parent15a43a780adfa0d7c41b52be53a26b90fafb23b4
ltend: Fail more nicely when land unit isn't on tender

Land units not on the tender are silently ignored.  This may leave the
player guessing why the command did nothing.  Reporting them all would
be annoying; I just changed tend to report only explicitly named ones.
Make ltend behave the same.

This does add a related annoyance: ltend can complain "not on ship"
when tending explicitly selected land units from multiple ships.
Tolerable.

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