]> git.pond.sub.org Git - empserver/commit
tend: Suppress "not on ship" unless land unit is selected by UID
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 12 Sep 2017 07:32:40 +0000 (09:32 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 06:25:17 +0000 (07:25 +0100)
commit15a43a780adfa0d7c41b52be53a26b90fafb23b4
tree71e28ff7b100e87ddfdd5bc33f43b258ff1f29c3
parent3064731af4fe3bc0df838e3414600c755feb0ac2
tend: Suppress "not on ship" unless land unit is selected by UID

The quickest way to tend all land units on a ship is to select all
land units with '*'.  However, tend then prints a "not on ship"
message for every land unit not on the tender, as the load-tend test
demonstrates.  Annoying.  Suppress this message unless the land unit
was explictly selected by UID.  Similar to how load and unload
suppress messages, only they get the condition wrong (to be fixed
soon).

A related annoyance remains, also visible in the load-tend test: tend
can still complain "not on ship" many times when tending explicitly
selected land units from multiple ships.

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