diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-21 15:27:44 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:55 +0100 |
commit | cbc0dcecffb9cf29708b1c1c4e60df49a1994add (patch) | |
tree | 9d348ed90d4cad5e5174c7b3f094445a849d5f69 /src/q_wolves.cc | |
parent | 2ae865768c1e0d575993f135f9b4fad3eeedc0b0 (diff) |
Update HOOK_QUEST_FINISH to new-style hook
Diffstat (limited to 'src/q_wolves.cc')
-rw-r--r-- | src/q_wolves.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/q_wolves.cc b/src/q_wolves.cc index ef3c22ec..1afa0fb8 100644 --- a/src/q_wolves.cc +++ b/src/q_wolves.cc @@ -104,11 +104,10 @@ static bool_ quest_wolves_death_hook(void *, void *, void *) return FALSE; } -static bool_ quest_wolves_finish_hook(const char *fmt) +static bool_ quest_wolves_finish_hook(void *, void *in_, void *) { - s32b q_idx; - - q_idx = get_next_arg(fmt); + struct hook_quest_finish_in *in = static_cast<struct hook_quest_finish_in *>(in_); + s32b q_idx = in->q_idx; if (q_idx != QUEST_WOLVES) return FALSE; @@ -126,8 +125,8 @@ bool_ quest_wolves_init_hook(int q_idx) if ((cquest.status >= QUEST_STATUS_UNTAKEN) && (cquest.status < QUEST_STATUS_FINISHED)) { add_hook_new(HOOK_MONSTER_DEATH, quest_wolves_death_hook, "wolves_monster_death", NULL); - add_hook (HOOK_QUEST_FINISH, quest_wolves_finish_hook, "wolves_finish"); - add_hook_new(HOOK_GEN_QUEST, quest_wolves_gen_hook, "wolves_geb", NULL); + add_hook_new(HOOK_QUEST_FINISH, quest_wolves_finish_hook, "wolves_finish", NULL); + add_hook_new(HOOK_GEN_QUEST, quest_wolves_gen_hook, "wolves_geb", NULL); } return (FALSE); } |