diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-28 17:39:14 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-29 01:07:35 +0100 |
commit | 2965f04181dcb6530b93acb194ba5f7561d8adc9 (patch) | |
tree | 3bde1791031add1297e063a2c1d1458d300f30ba /crawl-ref/source/art-func.h | |
parent | dbdbaf16e9ad6400c5232cd3b87583acfc996267 (diff) | |
download | crawl-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/art-func.h')
-rw-r--r-- | crawl-ref/source/art-func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/art-func.h b/crawl-ref/source/art-func.h index 7725997947..b56b0bf54a 100644 --- a/crawl-ref/source/art-func.h +++ b/crawl-ref/source/art-func.h @@ -335,7 +335,7 @@ static void _SINGING_SWORD_equip(item_def *item, bool *show_msgs, bool unmeld) if (!item->props.exists("ss_welcome")) { - mpr("The sword says, \"Hi! I'm the Singing Sword!\"", MSGCH_TALK); + mprf(MSGCH_TALK, "The sword says, \"Hi! I'm the Singing Sword!\""); item->props["ss_welcome"].get_bool() = true; } else |