summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/wiz-item.cc
diff options
context:
space:
mode:
authorPekka Lampila <pekka.lampila@iki.fi>2013-06-09 13:32:43 +0300
committerPekka Lampila <pekka.lampila@iki.fi>2013-06-10 07:29:30 +0300
commitc7e4383460b92074550587d50a507fe91901ff63 (patch)
tree4f14d4c25ca10eb73bd4d185be0e2850f0255c98 /crawl-ref/source/wiz-item.cc
parent3b9ce244f7719403408f411b33e9bb0989643215 (diff)
downloadcrawl-ref-c7e4383460b92074550587d50a507fe91901ff63.tar.gz
crawl-ref-c7e4383460b92074550587d50a507fe91901ff63.zip
Add MSG_OK when canceling for various prompts
Also in a couple of cases add other messages. The goal here is to always print something when a prompt is dealt with.
Diffstat (limited to 'crawl-ref/source/wiz-item.cc')
-rw-r--r--crawl-ref/source/wiz-item.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/wiz-item.cc b/crawl-ref/source/wiz-item.cc
index 7d6b2d304f..ffef8ee436 100644
--- a/crawl-ref/source/wiz-item.cc
+++ b/crawl-ref/source/wiz-item.cc
@@ -168,6 +168,7 @@ void wizard_create_spec_object()
if (!yesno("That monster doesn't leave corpses; make one "
"anyway?", true, 'y'))
{
+ canned_msg(MSG_OK);
return;
}
}
@@ -384,10 +385,16 @@ static void _tweak_randart(item_def &item)
else if (isadigit(keyin) && keyin != '0')
choice = keyin - '1' + 26;
else
+ {
+ canned_msg(MSG_OK);
return;
+ }
if (choice >= choice_to_prop.size())
+ {
+ canned_msg(MSG_HUH);
return;
+ }
unsigned int prop = choice_to_prop[choice];
ASSERT(prop < ARRAYSZ(_prop_type));