]> git.pond.sub.org Git - empserver/commitdiff
(fly): Check for player aborting the command at the `transport what?'
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 25 Sep 2005 16:39:44 +0000 (16:39 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 25 Sep 2005 16:39:44 +0000 (16:39 +0000)
prompt.  Closes #771801.

src/lib/commands/fly.c

index 6930845fbc675d405da0b149eadd972dc1e0e968..ef737c37669e9266ea65e8cc2df22572645e1ef6 100644 (file)
@@ -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? ");
     (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;
     getsect(tx, ty, &target);
 
     cno = -1;