]> git.pond.sub.org Git - empserver/commit
tend ltend: Reject foreign tenders and land units more nicely
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 13 Sep 2017 16:41:00 +0000 (18:41 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 06:25:17 +0000 (07:25 +0100)
commit1bde4df2bd69f91b9f4c930a118b4123d64f1e0c
tree6b71e1c01aeeca2ef11155d77c7aec1a0f165691
parenteb5ed8802a9ffbcfc081d39655c690e6a4e3b172
tend ltend: Reject foreign tenders and land units more nicely

We silently ignore foreign ships and land units.  This may leave the
player guessing why the command did nothing.  Report explicitly named
ones like this

    You don't own ship #160!

except for tend's target ships.  Nice reporting is a bit more involved
there, because you can tend to foreign target ships as long as they're
friendly.  Left for later.

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