(ac_encounter): Ignore embarked land units when checking for planes
overflying land units. Reported by Doug Wescott.
This commit is contained in:
parent
bf6f2162e8
commit
ea4943d0bd
1 changed files with 2 additions and 0 deletions
|
@ -300,6 +300,8 @@ ac_encounter(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
|
|||
memset(lnats, 0, sizeof(lnats));
|
||||
snxtitem_xy(&ni, EF_LAND, x, y);
|
||||
while (nxtitem(&ni, (s_char *)&land)) {
|
||||
if (land.lnd_ship >= 0 || land.lnd_land >= 0)
|
||||
continue;
|
||||
lnats[land.lnd_own]++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue