summaryrefslogtreecommitdiff
path: root/src/melee2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/melee2.cc')
-rw-r--r--src/melee2.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/melee2.cc b/src/melee2.cc
index 3ab3cc1c..10807b44 100644
--- a/src/melee2.cc
+++ b/src/melee2.cc
@@ -894,6 +894,8 @@ static void monster_msg(cptr fmt, ...)
void monster_msg_simple(cptr s)
{
+ auto &messages = game->messages;
+
/* Display */
if (options->disturb_other)
{
@@ -901,7 +903,7 @@ void monster_msg_simple(cptr s)
}
else
{
- message_add(s, TERM_WHITE);
+ messages.add(s, TERM_WHITE);
p_ptr->window |= PW_MESSAGE;
}
}
@@ -910,6 +912,7 @@ void cmonster_msg(char a, cptr fmt, ...)
{
va_list vp;
+ auto &messages = game->messages;
char buf[1024];
/* Begin the Varargs Stuff */
@@ -928,7 +931,7 @@ void cmonster_msg(char a, cptr fmt, ...)
}
else
{
- message_add(buf, a);
+ messages.add(buf, a);
p_ptr->window |= PW_MESSAGE;
}
}