summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorChris Oelmueller <chris.oelmueller@gmail.com>2013-12-09 06:01:19 +0100
committerNeil Moore <neil@s-z.org>2013-12-09 00:56:27 -0500
commit2b1062468fdd0881c94898a69087fba475111c57 (patch)
treeddf49638cf87658c77fb95c26eade61067bbff69 /crawl-ref/source/invent.cc
parentd36705e9f3925c045b6d14fccf0ba0f495c3867b (diff)
downloadcrawl-ref-2b1062468fdd0881c94898a69087fba475111c57.tar.gz
crawl-ref-2b1062468fdd0881c94898a69087fba475111c57.zip
Remove unused parameter from prompt_failed
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc11
1 files changed, 3 insertions, 8 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 940d4ff4d9..f5336cc383 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -2003,18 +2003,13 @@ int prompt_invent_item(const char *prompt,
return ret;
}
-bool prompt_failed(int retval, string msg)
+bool prompt_failed(int retval)
{
if (retval != PROMPT_ABORT && retval != PROMPT_NOTHING)
return false;
- if (msg.empty())
- {
- if (retval == PROMPT_ABORT)
- canned_msg(MSG_OK);
- }
- else
- mprf(MSGCH_PROMPT, "%s", msg.c_str());
+ if (retval == PROMPT_ABORT)
+ canned_msg(MSG_OK);
crawl_state.cancel_cmd_repeat();