summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-03-06 15:21:56 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-03-06 15:22:59 -0700
commita7442b6e126fc341f3bdb2e886368cb2fc13791e (patch)
tree372efa321d593b3eac594512d94fdf484466ddc2 /crawl-ref/source/effects.cc
parentb916d6f9691021c6ac39b9aa6132ea388c220a88 (diff)
downloadcrawl-ref-a7442b6e126fc341f3bdb2e886368cb2fc13791e.tar.gz
crawl-ref-a7442b6e126fc341f3bdb2e886368cb2fc13791e.zip
Recharging is wasted if you read-ID with nothing to charge (qw).
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 6a54c4c04b..85f856a4a5 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -699,7 +699,7 @@ int recharge_wand(int item_slot, bool known, string *pre_msg)
}
if (item_slot == PROMPT_NOTHING)
- return -1;
+ return known || crawl_state.seen_hups ? -1 : 0;
if (item_slot == PROMPT_ABORT)
{