diff --git a/src/lib/commands/bomb.c b/src/lib/commands/bomb.c index 39f1aa17..6af2db6f 100644 --- a/src/lib/commands/bomb.c +++ b/src/lib/commands/bomb.c @@ -117,8 +117,6 @@ bomb(void) pr("target sector is %s\n", xyas(tx, ty, player->cnum)); getsect(tx, ty, &target); ap_to_target = strlen(flightpath); - if (flightpath[ap_to_target - 1] == 'h') - ap_to_target--; pr("range to target is %d\n", ap_to_target); /* * select planes within range diff --git a/src/lib/commands/drop.c b/src/lib/commands/drop.c index ca39b4d4..7fb72ddc 100644 --- a/src/lib/commands/drop.c +++ b/src/lib/commands/drop.c @@ -95,8 +95,6 @@ drop(void) } ap_to_target = strlen(flightpath); - if (flightpath[ap_to_target - 1] == 'h') - ap_to_target--; pr("range to target is %d\n", ap_to_target); /* * select planes within range diff --git a/src/lib/commands/fly.c b/src/lib/commands/fly.c index c82a7a4b..d3218db5 100644 --- a/src/lib/commands/fly.c +++ b/src/lib/commands/fly.c @@ -92,8 +92,6 @@ fly(void) } ap_to_target = strlen(flightpath); - if (flightpath[ap_to_target - 1] == 'h') - ap_to_target--; pr("range to target is %d\n", ap_to_target); /* * select planes within range diff --git a/src/lib/commands/para.c b/src/lib/commands/para.c index 41a0d08a..d8665e9b 100644 --- a/src/lib/commands/para.c +++ b/src/lib/commands/para.c @@ -72,8 +72,6 @@ para(void) getsect(tx, ty, &target); pr("LZ is %s\n", xyas(tx, ty, player->cnum)); ap_to_target = strlen(flightpath); - if (flightpath[ap_to_target - 1] == 'h') - ap_to_target--; pr("range to target is %d\n", ap_to_target); if (target.sct_own == player->cnum) { pr("You can't air-assault your own sector!\n"); diff --git a/src/lib/commands/reco.c b/src/lib/commands/reco.c index 32f590c5..274f662d 100644 --- a/src/lib/commands/reco.c +++ b/src/lib/commands/reco.c @@ -75,8 +75,6 @@ reco(void) cno = target.gen.ef_type == EF_SHIP ? target.gen.uid : -1; ap_to_target = strlen(flightpath); - if (flightpath[ap_to_target - 1] == 'h') - ap_to_target--; pr("range to target is %d\n", ap_to_target); /* * select planes within range