aborting key/pick usage (trunk only)

From the newsgroup:  applying a key and then using ESC at direction
choosing prompt was using up a move even though hero didn't do anything.
This commit is contained in:
nethack.rankin
2008-03-08 03:45:26 +00:00
parent ba0d55ce54
commit 2d1eb28e67
3 changed files with 38 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)apply.c 3.5 2007/05/05 */
/* SCCS Id: @(#)apply.c 3.5 2008/03/07 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -3073,7 +3073,7 @@ doapply()
case CREDIT_CARD:
#endif
case SKELETON_KEY:
(void) pick_lock(obj);
res = (pick_lock(obj) != 0);
break;
case PICK_AXE:
case DWARVISH_MATTOCK: