summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/terrain.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/terrain.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/terrain.cc')
-rw-r--r--crawl-ref/source/terrain.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/terrain.cc b/crawl-ref/source/terrain.cc
index 5aa1383ed4..b7a3599597 100644
--- a/crawl-ref/source/terrain.cc
+++ b/crawl-ref/source/terrain.cc
@@ -605,12 +605,12 @@ bool feat_destroys_item(dungeon_feature_type feat, const item_def &item,
case DNGN_SHALLOW_WATER:
case DNGN_DEEP_WATER:
if (noisy)
- mpr("You hear a splash.", MSGCH_SOUND);
+ mprf(MSGCH_SOUND, "You hear a splash.");
return false;
case DNGN_LAVA:
if (noisy)
- mpr("You hear a sizzling splash.", MSGCH_SOUND);
+ mprf(MSGCH_SOUND, "You hear a sizzling splash.");
return true;
default:
@@ -627,17 +627,17 @@ bool feat_virtually_destroys_item(dungeon_feature_type feat, const item_def &ite
{
case DNGN_SHALLOW_WATER:
if (noisy)
- mpr("You hear a splash.", MSGCH_SOUND);
+ mprf(MSGCH_SOUND, "You hear a splash.");
return false;
case DNGN_DEEP_WATER:
if (noisy)
- mpr("You hear a splash.", MSGCH_SOUND);
+ mprf(MSGCH_SOUND, "You hear a splash.");
return true;
case DNGN_LAVA:
if (noisy)
- mpr("You hear a sizzling splash.", MSGCH_SOUND);
+ mprf(MSGCH_SOUND, "You hear a sizzling splash.");
return true;
default: