From 21a39fd9ddb81bb5bc5e94389aca40614c6a863e Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 25 Sep 2005 16:39:44 +0000 Subject: [PATCH] (fly): Check for player aborting the command at the `transport what?' prompt. Closes #771801. --- src/lib/commands/fly.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/commands/fly.c b/src/lib/commands/fly.c index 6930845f..ef737c37 100644 --- a/src/lib/commands/fly.c +++ b/src/lib/commands/fly.c @@ -95,6 +95,8 @@ fly(void) (void)pathtoxy(flightpath, &tx, &ty, fcost); pr("Ending sector is %s\n", xyas(tx, ty, player->cnum)); ip = whatitem(player->argp[5], "transport what? "); + if (player->aborted) + return RET_SYN; getsect(tx, ty, &target); cno = -1;