From 9a4f1ce9ef745a5a4f42a1cbedda3d1837b7fd04 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 11 Jan 2015 10:35:22 +0100 Subject: [PATCH] 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 --- src/lib/commands/bomb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/bomb.c b/src/lib/commands/bomb.c index b90f3acf6..5ea899e38 100644 --- a/src/lib/commands/bomb.c +++ b/src/lib/commands/bomb.c @@ -535,7 +535,7 @@ plane_bomb(struct emp_qelem *list, struct sctstr *target) n = atoi(q); if (n < 0) continue; - if (getplane(n, &plane) && + if (getplane(n, &plane) && plane.pln_own && plane.pln_x == target->sct_x && plane.pln_y == target->sct_y && plane.pln_ship < 0 && plane.pln_land < 0 && -- 2.43.0