summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-29 00:48:38 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-29 01:07:36 +0100
commitec5babf52457f197efca55ab2292050a270e34f9 (patch)
tree5f70061d5f564355fe3ce7a6abaa3c0ee3526543 /crawl-ref/source/invent.cc
parentc433d949e7be797fb8662d2efa3ec73c12c6469a (diff)
downloadcrawl-ref-ec5babf52457f197efca55ab2292050a270e34f9.tar.gz
crawl-ref-ec5babf52457f197efca55ab2292050a270e34f9.zip
Restrict mpr() to literals only.
The translation project is stalled, but this makes all of such static strings trivially gatherable without any extra work.
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index c203bb413f..ff27f1b019 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -2064,7 +2064,7 @@ bool item_is_evokable(const item_def &item, bool reach, bool known,
return true;
if (msg)
- mpr(error);
+ mprf("%s", error.c_str());
return false;
}
@@ -2104,7 +2104,7 @@ bool item_is_evokable(const item_def &item, bool reach, bool known,
if (!wielded)
{
if (msg)
- mpr(error);
+ mprf("%s", error.c_str());
return false;
}
return true;
@@ -2118,7 +2118,7 @@ bool item_is_evokable(const item_def &item, bool reach, bool known,
if (!wielded)
{
if (msg)
- mpr(error);
+ mprf("%s", error.c_str());
return false;
}
return true;
@@ -2131,7 +2131,7 @@ bool item_is_evokable(const item_def &item, bool reach, bool known,
if (!wielded)
{
if (msg)
- mpr(error);
+ mprf("%s", error.c_str());
return false;
}
return true;
@@ -2146,7 +2146,7 @@ bool item_is_evokable(const item_def &item, bool reach, bool known,
if (!wielded)
{
if (msg)
- mpr(error);
+ mprf("%s", error.c_str());
return false;
}
return true;