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_hobbit.cc | |
parent | 0595b2fa946619d29624505f8edc0f9c00146e61 (diff) |
Move "messages" to Game struct
Diffstat (limited to 'src/q_hobbit.cc')
-rw-r--r-- | src/q_hobbit.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/q_hobbit.cc b/src/q_hobbit.cc index 011269eb..655755a3 100644 --- a/src/q_hobbit.cc +++ b/src/q_hobbit.cc @@ -1,6 +1,7 @@ #include "q_hobbit.hpp" #include "cave.hpp" +#include "game.hpp" #include "hook_chardump_in.hpp" #include "hook_chat_in.hpp" #include "hook_give_in.hpp" @@ -209,6 +210,8 @@ static bool quest_hobbit_dump_hook(void *, void *in_, void *) void quest_hobbit_init_hook() { + auto &messages = game->messages; + /* Get a level to place the hobbit */ if (!cquest.data[0]) { @@ -216,7 +219,7 @@ void quest_hobbit_init_hook() cquest.data[1] = turn; if (wizard) { - message_add(format("Hobbit level %d", cquest.data[0]), TERM_BLUE); + messages.add(format("Hobbit level %d", cquest.data[0]), TERM_BLUE); } } |