summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/it_use3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/it_use3.cc')
-rw-r--r--crawl-ref/source/it_use3.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc
index 991f38998d..27368ee5e1 100644
--- a/crawl-ref/source/it_use3.cc
+++ b/crawl-ref/source/it_use3.cc
@@ -70,7 +70,7 @@ void special_wielded()
case SPWLD_SING:
if (makes_noise)
{
- const char* suffixes[32] = {
+ const char* suffixes[] = {
"hums a little tune.", "breaks into glorious song!",
"sings.", "sings loudly.", "chimes melodiously.",
"makes a horrible noise.", "sings off-key.",
@@ -84,8 +84,11 @@ void special_wielded()
"makes a popping sound.", "sings a sudden staccato note.",
"says 'Hi! I'm the Singing Sword!'.", "whispers something.",
"speaks gibberish.", "raves incoherently",
- "yells in some weird language." };
- mprf("The Singing Sword %s", suffixes[random2(32)]);
+ "yells in some weird language."
+ };
+ const int num_suffixes = sizeof(suffixes) / sizeof(suffixes[0]);
+ msg::stream << "The Singing Sword "
+ << suffixes[random2(num_suffixes)] << std::endl;
}
break;