summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-24 06:09:08 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-24 06:09:08 +0000
commited60b40c58c79b13abf54b1a53ae2e2f805a3728 (patch)
tree570cba772cff4362042fbf1b640f7723a02cddda /crawl-ref/source/effects.cc
parente91373c5cee34bd369bc8171161981301099c5a4 (diff)
downloadcrawl-ref-ed60b40c58c79b13abf54b1a53ae2e2f805a3728.tar.gz
crawl-ref-ed60b40c58c79b13abf54b1a53ae2e2f805a3728.zip
FR 1993535: If asking the user for an item, and the player has none of the
type of item requested, then mpr() the message about it, rather than bringing up an empty menu with the message being the menu's title. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6105 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 254f3fc7f0..d680b97445 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -1763,11 +1763,8 @@ bool recharge_wand(int item_slot)
OSEL_RECHARGE, true, true, false );
}
- if (item_slot == PROMPT_ABORT)
- {
- canned_msg( MSG_OK );
+ if (prompt_failed(item_slot))
return (false);
- }
item_def &wand = you.inv[ item_slot ];