]> git.pond.sub.org Git - empserver/commit
tend ltend: Fix to skip dead ships and land units for deities
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 15 Sep 2017 07:49:01 +0000 (09:49 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 06:25:17 +0000 (07:25 +0100)
commit55643423f6fdc361353e19aaf4ac0a5e57ba463d
tree2c08cf0cc24e978003a259b0985ac55079195f20
parent333cd7d6d3218c46ba560b2d14f7927349ed9e72
tend ltend: Fix to skip dead ships and land units for deities

Tending to a dead ship destroys, and tending from a dead ship revives.
Has always been that way.  Not actually a problem for ltend anymore,
because the dead can't carry or be carried since commit 64a53c90f0,
v4.3.17.

Fix by checking !own in addition to !player->owner

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/lten.c
src/lib/commands/tend.c
tests/load-tend/04-tend-POGO
tests/load-tend/final.xdump
tests/load-tend/journal.log