(bomb, drop, fly, para, reco): Simplify.

This commit is contained in:
Markus Armbruster 2006-04-30 12:48:21 +00:00
parent 4074ab02f1
commit 901499908c
5 changed files with 5 additions and 5 deletions

View file

@ -86,7 +86,7 @@ reco(void)
if (pln_onewaymission(&target, &cno, &wantflags) < 0)
return RET_SYN;
ap_to_target = strlen(flightpath);
if (*(flightpath + strlen(flightpath) - 1) == 'h')
if (flightpath[ap_to_target - 1] == 'h')
ap_to_target--;
pr("range to target is %d\n", ap_to_target);
/*