From ab0d5a87bd50a283cc8d55e0cb259bc228a7e265 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 13 Aug 2004 12:02:35 +0000 Subject: [PATCH] (bomb): Don't tell the player that target is a sanctuary before his planes got there. This closes a loophole that allowed players with any planes to find all sanctuaries. --- src/lib/commands/bomb.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/commands/bomb.c b/src/lib/commands/bomb.c index 549e5f19..9db826f8 100644 --- a/src/lib/commands/bomb.c +++ b/src/lib/commands/bomb.c @@ -139,10 +139,6 @@ bomb(void) (void)pathtoxy(flightpath, &tx, &ty, fcost); pr("target sector is %s\n", xyas(tx, ty, player->cnum)); getsect(tx, ty, &target); - if (target.sct_type == SCT_SANCT) { - pr("You can't bomb that sector!\n"); - return RET_SYN; - } ip = 0; ap_to_target = strlen(flightpath); if (*(flightpath + strlen(flightpath) - 1) == 'h') @@ -178,6 +174,8 @@ bomb(void) 0, 0, 0); if (QEMPTY(&bomb_list)) { pr("No planes got through fighter defenses\n"); + } else if (target.sct_type == SCT_SANCT) { + pr("You can't bomb that sector!\n"); } else { switch (mission) { case 'p':