]> git.pond.sub.org Git - empserver/commit
Fix ground combat to report defending land units
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 31 May 2008 08:35:47 +0000 (10:35 +0200)
committerMarkus Armbruster <armbru@pike.pond.sub.org>
Tue, 10 Jun 2008 08:25:05 +0000 (10:25 +0200)
commit07d2c38a7342ccafe568321ff8fa4709cc6fbb61
treeb2c1bdbbbe02ee1791dd5eb80a91a81c91a17d04
parentb8bdc32b3cf608b63e025836d33964ebfa81fba1
Fix ground combat to report defending land units

Commit 092a52f2 (v4.3.4) removed the code to estimate defense, because
the use of the estimate had been disabled since v4.0.0.  This
accidentally removed the reporting of defending units, because
get_dlist() reported them when called for an estimate, and not when
called for real.

Fix by removing the unused estimate capability from get_dlist().  It
now reports defending units always.
(cherry picked from commit 64f44e99044a8b28b8631a27fc882a959f737f84)
src/lib/subs/attsub.c