summaryrefslogtreecommitdiff
path: root/src/q_thrain.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/q_thrain.cc')
-rw-r--r--src/q_thrain.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/q_thrain.cc b/src/q_thrain.cc
index 025ff01f..7b895695 100644
--- a/src/q_thrain.cc
+++ b/src/q_thrain.cc
@@ -264,13 +264,14 @@ static bool quest_thrain_turn_hook(void *, void *, void *)
void quest_thrain_init_hook()
{
auto const &d_info = game->edit_data.d_info;
+ auto &messages = game->messages;
if (!cquest.data[0])
{
cquest.data[0] = rand_range(d_info[DUNGEON_DOL_GULDUR].mindepth + 1, d_info[DUNGEON_DOL_GULDUR].maxdepth - 1);
if (wizard)
{
- message_add(format("Thrain lvl %d", cquest.data[0]), TERM_BLUE);
+ messages.add(format("Thrain lvl %d", cquest.data[0]), TERM_BLUE);
}
}
if ((cquest.status >= QUEST_STATUS_TAKEN) && (cquest.status < QUEST_STATUS_FINISHED))