summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.h
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/invent.h
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/invent.h')
-rw-r--r--crawl-ref/source/invent.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h
index 46a3ead180..f11916107e 100644
--- a/crawl-ref/source/invent.h
+++ b/crawl-ref/source/invent.h
@@ -35,6 +35,7 @@ enum object_selector
#define PROMPT_ABORT -1
#define PROMPT_GOT_SPECIAL -2
+#define PROMPT_NOTHING -3
struct SelItem
{
@@ -231,4 +232,6 @@ bool has_warning_inscription(const item_def& item, operation_types oper);
void init_item_sort_comparators(item_sort_comparators &list,
const std::string &set);
+bool prompt_failed(int retval, std::string msg = "");
+
#endif