Change test whether a land unit is artillery

Test for land unit firing damage instead of range, for consistency
with ships.
This commit is contained in:
Markus Armbruster 2008-03-03 07:29:24 +01:00
parent 22c6fd8bf6
commit 69f441ef39
4 changed files with 5 additions and 5 deletions

View file

@ -1136,7 +1136,7 @@ lnd_support(natid victim, natid attacker, coord x, coord y, int defending)
snxtitem_all(&ni, EF_LAND);
while (nxtitem(&ni, &land)) {
if (land.lnd_frg == 0)
if (land.lnd_dam == 0)
continue;
if ((land.lnd_x == x) && (land.lnd_y == y))
continue;