bomb: Fix to reject attempts to bomb unused planes
Report "not spotted", like we do for unused ships and land units.
Missed in commit 23d52a4
, v4.3,16.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
e2b264f02c
commit
9a4f1ce9ef
1 changed files with 1 additions and 1 deletions
|
@ -535,7 +535,7 @@ plane_bomb(struct emp_qelem *list, struct sctstr *target)
|
||||||
n = atoi(q);
|
n = atoi(q);
|
||||||
if (n < 0)
|
if (n < 0)
|
||||||
continue;
|
continue;
|
||||||
if (getplane(n, &plane) &&
|
if (getplane(n, &plane) && plane.pln_own &&
|
||||||
plane.pln_x == target->sct_x &&
|
plane.pln_x == target->sct_x &&
|
||||||
plane.pln_y == target->sct_y &&
|
plane.pln_y == target->sct_y &&
|
||||||
plane.pln_ship < 0 && plane.pln_land < 0 &&
|
plane.pln_ship < 0 && plane.pln_land < 0 &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue