]> git.pond.sub.org Git - empserver/commit
subs: Tighten the check for destroyed defending land unit
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 23 Jul 2016 08:09:46 +0000 (10:09 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:18 +0000 (20:09 +0200)
commit0c6d1e422e33f916e7be764dc9ed4e2f1f81e5fe
tree319fa8a5af420f4d9473a9684138e7627bb24517
parent25c96cc3acbe4b977a640963f8aaf5005465db99
subs: Tighten the check for destroyed defending land unit

get_dland() tests efficiency to find out whether the defending land
unit is gone.  Doesn't work when somebody else has since built a new
one with the same UID.  Not sure that can happen.  Check for a change
of owner instead.  Matches get_oland().

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/attsub.c