diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-29 00:48:38 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-29 01:07:36 +0100 |
commit | ec5babf52457f197efca55ab2292050a270e34f9 (patch) | |
tree | 5f70061d5f564355fe3ce7a6abaa3c0ee3526543 /crawl-ref/source/potion.cc | |
parent | c433d949e7be797fb8662d2efa3ec73c12c6469a (diff) | |
download | crawl-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/potion.cc')
-rw-r--r-- | crawl-ref/source/potion.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/potion.cc b/crawl-ref/source/potion.cc index 8d8599ec6d..48a8dee801 100644 --- a/crawl-ref/source/potion.cc +++ b/crawl-ref/source/potion.cc @@ -523,7 +523,7 @@ bool potion_effect(potion_type pot_eff, int pow, item_def *potion, bool was_know { set_ident_flags(*potion, ISFLAG_IDENT_MASK); set_ident_type(*potion, ID_KNOWN_TYPE); - mpr("It was a " + potion->name(DESC_QUALNAME) + "."); + mprf("It was a %s.", potion->name(DESC_QUALNAME).c_str()); } return true; |