summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r--crawl-ref/source/stuff.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc
index 92c46482ac..c9be50c2ed 100644
--- a/crawl-ref/source/stuff.cc
+++ b/crawl-ref/source/stuff.cc
@@ -979,11 +979,14 @@ static std::string _list_alternative_yes(char yes1, char yes2,
}
static const char* _list_allowed_keys(char yes1, char yes2,
- bool lowered = false)
+ bool lowered = false,
+ bool allow_all = false)
{
std::string result = " [";
result += (lowered ? "y" : "Y");
result += _list_alternative_yes(yes1, yes2, lowered);
+ if (allow_all)
+ result += (lowered? "/a" : "/A");
result += (lowered ? "/n/q" : "/N/Q");
result += "]";
@@ -1000,7 +1003,7 @@ int yesnoquit( const char* str, bool safe, int safeanswer, bool allow_all,
std::string prompt = make_stringf("%s%s ", str ? str : "Buggy prompt?",
_list_allowed_keys(alt_yes, alt_yes2,
- safe));
+ safe, allow_all));
while (true)
{