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.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc
index caca339a08..550ae9ac0c 100644
--- a/crawl-ref/source/stuff.cc
+++ b/crawl-ref/source/stuff.cc
@@ -793,10 +793,13 @@ bool yesno( const char *str, bool safe, int safeanswer, bool clear_after,
if (interrupt_delays && !crawl_state.is_repeating_cmd())
interrupt_activity( AI_FORCE_INTERRUPT );
+ std::string prompt = make_stringf("%s ", str ? str : "Buggy prompt?");
+ // std::string prompt = make_stringf("%s (y/n) ", str);
+
for (;;)
{
if ( !noprompt )
- mpr(str, MSGCH_PROMPT);
+ mpr(prompt.c_str(), MSGCH_PROMPT);
int tmp = getchm(KC_CONFIRM);