summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/delay.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/delay.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/delay.cc')
-rw-r--r--crawl-ref/source/delay.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc
index 4ec608d7e7..721d289e48 100644
--- a/crawl-ref/source/delay.cc
+++ b/crawl-ref/source/delay.cc
@@ -863,7 +863,7 @@ void handle_delay()
break;
case DELAY_BUTCHER:
- mpr("You continue butchering the corpse.", MSGCH_MULTITURN_ACTION);
+ mprf(MSGCH_MULTITURN_ACTION, "You continue butchering the corpse.");
break;
case DELAY_BOTTLE_BLOOD:
@@ -916,7 +916,7 @@ void handle_delay()
stop_delay();
return;
}
- mpr("You continue drinking.", MSGCH_MULTITURN_ACTION);
+ mprf(MSGCH_MULTITURN_ACTION, "You continue drinking.");
vampire_nutrition_per_turn(corpse, 0);
break;
}
@@ -1725,7 +1725,7 @@ void autotoggle_autopickup(bool off)
else if (Options.autopickup_on < 0) // was turned off automatically
{
Options.autopickup_on = 1;
- mpr("Reactivating autopickup.", MSGCH_WARN);
+ mprf(MSGCH_WARN, "Reactivating autopickup.");
}
}