summaryrefslogtreecommitdiff
path: root/src/q_library.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-19 00:24:43 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-23 12:07:54 +0100
commit3ba08796130deb101c2b5cf8c00b86a965b3de22 (patch)
treecefdedf48afe0a97c9689cb80d17df212eebebcb /src/q_library.cc
parent7e96b9af38f3fb415a9c0326046b3cb2295c2687 (diff)
Update HOOK_GEN_QUEST to new-style hook
Diffstat (limited to 'src/q_library.cc')
-rw-r--r--src/q_library.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/q_library.cc b/src/q_library.cc
index afa4284d..c3305ea9 100644
--- a/src/q_library.cc
+++ b/src/q_library.cc
@@ -298,7 +298,7 @@ static void library_quest_fill_book()
screen_load();
}
-static bool_ quest_library_gen_hook(const char *fmt)
+static bool_ quest_library_gen_hook(void *, void *, void *)
{
/* Only if player doing this quest */
if (p_ptr->inside_quest != QUEST_LIBRARY)
@@ -494,7 +494,7 @@ bool_ quest_library_init_hook(int q)
if ((cquest.status >= QUEST_STATUS_UNTAKEN) &&
(cquest.status < QUEST_STATUS_FINISHED))
{
- add_hook (HOOK_GEN_QUEST , quest_library_gen_hook , "library_gen_hook");
+ add_hook_new(HOOK_GEN_QUEST , quest_library_gen_hook , "library_gen_hook", NULL);
add_hook_new(HOOK_STAIR , quest_library_stair_hook , "library_stair_hook", NULL);
add_hook (HOOK_MONSTER_DEATH, quest_library_monster_death_hook, "library_monster_death_hook");
}