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:
Markus Armbruster 2015-01-11 10:35:22 +01:00
parent e2b264f02c
commit 9a4f1ce9ef

View file

@ -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 &&