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

@ -227,7 +227,7 @@ mission(void)
}
if ((mission == MI_INTERDICT) && (type == EF_LAND))
if (lchr[(int)gp->type].l_frg < 1) {
if (lchr[(int)gp->type].l_dam == 0) {
pr("%s: cannot fire at range!\n", obj_nameof(gp));
continue;
}