summaryrefslogtreecommitdiff
path: root/src/melee2.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-06-07 09:40:26 +0200
committerBardur Arantsson <bardur@scientician.net>2014-06-26 04:19:42 +0200
commit62bcb16ba7fdda8f87d5b698546c4b3ba4b721cd (patch)
tree664b12659dcaf223c6141e3b6e1f53b8d516e922 /src/melee2.cc
parent41b65b07a5ac89bad9533487b2233d309e7fc86d (diff)
Remove a usage of vstrnfmt()
Diffstat (limited to 'src/melee2.cc')
-rw-r--r--src/melee2.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/melee2.cc b/src/melee2.cc
index 0a139f89..5b3251ef 100644
--- a/src/melee2.cc
+++ b/src/melee2.cc
@@ -962,12 +962,20 @@ void monster_msg(cptr fmt, ...)
/* End the Varargs Stuff */
va_end(vp);
+ /* Print */
+ monster_msg_simple(buf);
+}
+
+void monster_msg_simple(cptr s)
+{
/* Display */
if (disturb_other)
- msg_print(buf);
+ {
+ msg_print(s);
+ }
else
{
- message_add(buf, TERM_WHITE);
+ message_add(s, TERM_WHITE);
p_ptr->window |= PW_MESSAGE;
}
}