diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-18 21:39:05 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:54 +0100 |
commit | e190564a0791cef0ac7a8393d23643af7d1be3cb (patch) | |
tree | 6bbb29e953bf9895aa87fbc1717560503ce12a68 /src/q_hobbit.cc | |
parent | ddebc7f4803cc967427db1fdb7c2196afc114c14 (diff) |
Update HOOK_GEN_LEVEL to new-style hook
Diffstat (limited to 'src/q_hobbit.cc')
-rw-r--r-- | src/q_hobbit.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/q_hobbit.cc b/src/q_hobbit.cc index 2d9f5727..c479eb84 100644 --- a/src/q_hobbit.cc +++ b/src/q_hobbit.cc @@ -37,7 +37,7 @@ static bool_ quest_hobbit_town_gen_hook(const char *fmt) return FALSE; } -static bool_ quest_hobbit_gen_hook(const char *fmt) +static bool_ quest_hobbit_gen_hook(void *, void *, void *) { int x = 1, y = 1, tries = 10000; @@ -186,7 +186,7 @@ bool_ quest_hobbit_init_hook(int q_idx) if ((cquest.status >= QUEST_STATUS_TAKEN) && (cquest.status < QUEST_STATUS_FINISHED)) { add_hook_new(HOOK_GIVE, quest_hobbit_give_hook, "hobbit_give", NULL); - add_hook (HOOK_GEN_LEVEL, quest_hobbit_gen_hook, "hobbit_gen"); + add_hook_new(HOOK_GEN_LEVEL, quest_hobbit_gen_hook, "hobbit_gen", NULL); add_hook (HOOK_WILD_GEN, quest_hobbit_town_gen_hook, "hobbit_town_gen"); add_hook_new(HOOK_CHAT, quest_hobbit_chat_hook, "hobbit_chat", NULL); add_hook_new(HOOK_MON_SPEAK, quest_hobbit_speak_hook, "hobbit_speak", NULL); |