diff options
author | Bardur Arantsson <bardur@scientician.net> | 2017-06-13 18:24:42 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2017-06-13 18:24:42 +0200 |
commit | 554ff9a63d5d9bc64f668a00b6baa9b91dc41306 (patch) | |
tree | 6d25a4f53042a4f4154d07fa77921c0ba13b68bd /src/q_rand.cc | |
parent | 0595b2fa946619d29624505f8edc0f9c00146e61 (diff) |
Move "messages" to Game struct
Diffstat (limited to 'src/q_rand.cc')
-rw-r--r-- | src/q_rand.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/q_rand.cc b/src/q_rand.cc index e3860dd2..b643ca39 100644 --- a/src/q_rand.cc +++ b/src/q_rand.cc @@ -57,6 +57,7 @@ void initialize_random_quests(int n) { auto const &d_info = game->edit_data.d_info; auto &r_info = game->edit_data.r_info; + auto &messages = game->messages; int step, lvl, i, k; int old_type = dungeon_type; @@ -173,7 +174,7 @@ void initialize_random_quests(int n) { if (wizard) { - message_add(format("Could not find quest monster on lvl %d", rl), TERM_RED); + messages.add(format("Could not find quest monster on lvl %d", rl), TERM_RED); } q_ptr->type = 0; } @@ -188,8 +189,7 @@ void initialize_random_quests(int n) if (wizard) { - message_add(format("Quest for %d on lvl %d", - q_ptr->r_idx, rl), TERM_RED); + messages.add(format("Quest for %d on lvl %d", q_ptr->r_idx, rl), TERM_RED); } } |