summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-28 17:39:14 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-29 01:07:35 +0100
commit2965f04181dcb6530b93acb194ba5f7561d8adc9 (patch)
tree3bde1791031add1297e063a2c1d1458d300f30ba /crawl-ref/source/directn.cc
parentdbdbaf16e9ad6400c5232cd3b87583acfc996267 (diff)
downloadcrawl-ref-2965f04181dcb6530b93acb194ba5f7561d8adc9.tar.gz
crawl-ref-2965f04181dcb6530b93acb194ba5f7561d8adc9.zip
Revert "Replace `mprf(ch, s)` with `mpr(s, ch)`"
It trades readability and consistency for an utterly negligible bit of speed. With the amount of further processing mpr() does, a single sprintf is nothing. This reverts commit d9dfa8fc9755fb0a4e8954c7eb94f32fe97b82e0.
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index a7266c09ba..d5e893f72e 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -1552,7 +1552,7 @@ void direction_chooser::print_items_description() const
get_menu_colour_prefix_tags(*item, DESC_A).c_str());
if (multiple_items_at(target()))
- mpr("There is something else lying underneath.", MSGCH_FLOOR_ITEMS);
+ mprf(MSGCH_FLOOR_ITEMS, "There is something else lying underneath.");
}
void direction_chooser::print_floor_description(bool boring_too) const
@@ -1608,7 +1608,7 @@ void direction_chooser::toggle_beam()
{
if (!needs_path)
{
- mpr("This spell doesn't need a beam path.", MSGCH_EXAMINE_FILTER);
+ mprf(MSGCH_EXAMINE_FILTER, "This spell doesn't need a beam path.");
return;
}