diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 21:03:03 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 21:03:03 +0000 |
commit | 903545490b187e5cf38ad5e88b0e5be1e614bc9f (patch) | |
tree | 267e52ff649e51b40b6c41f22bd66c7fb6062e21 /crawl-ref/source/invent.cc | |
parent | 830ed9f159709c65fee6993db9eae7358128770d (diff) | |
download | crawl-ref-903545490b187e5cf38ad5e88b0e5be1e614bc9f.tar.gz crawl-ref-903545490b187e5cf38ad5e88b0e5be1e614bc9f.zip |
Fix [1974504]: eating from the floor did not respect !e.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8991 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r-- | crawl-ref/source/invent.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index 288950d874..7f2aeb0f94 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -1373,7 +1373,8 @@ bool check_warning_inscriptions( const item_def& item, } std::string prompt = "Really " + _operation_verb(oper) + " "; - prompt += item.name(DESC_INVENTORY); + prompt += (in_inventory(item) ? item.name(DESC_INVENTORY) + : item.name(DESC_NOCAP_A)); prompt += "?"; return (yesno(prompt.c_str(), false, 'n') && check_old_item_warning(item, oper)); |