summaryrefslogtreecommitdiff
path: root/src/q_thrain.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2017-06-13 18:24:42 +0200
committerBardur Arantsson <bardur@scientician.net>2017-06-13 18:24:42 +0200
commit554ff9a63d5d9bc64f668a00b6baa9b91dc41306 (patch)
tree6d25a4f53042a4f4154d07fa77921c0ba13b68bd /src/q_thrain.cc
parent0595b2fa946619d29624505f8edc0f9c00146e61 (diff)
Move "messages" to Game struct
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))