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:
parent
22c6fd8bf6
commit
69f441ef39
4 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue