diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-18 21:56:53 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:54 +0100 |
commit | 132e99238140b1628a2f0175a6edc85358fe8101 (patch) | |
tree | 5d9634281e95d71a28451c78a50b59cec702b003 /src/q_poison.cc | |
parent | e190564a0791cef0ac7a8393d23643af7d1be3cb (diff) |
Update HOOK_WILD_GEN to new-style hook
Diffstat (limited to 'src/q_poison.cc')
-rw-r--r-- | src/q_poison.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/q_poison.cc b/src/q_poison.cc index a63dca96..d65b8802 100644 --- a/src/q_poison.cc +++ b/src/q_poison.cc @@ -25,7 +25,7 @@ static bool_ create_molds_hook(int r_idx) else return FALSE; } -static bool_ quest_poison_gen_hook(const char *fmt) +static bool_ quest_poison_gen_hook(void *, void *, void *) { int cy = 1, cx = 1, x, y, tries = 10000, r_idx; bool_ (*old_get_mon_num_hook)(int r_idx); @@ -234,9 +234,9 @@ bool_ quest_poison_init_hook(int q_idx) if ((cquest.status >= QUEST_STATUS_TAKEN) && (cquest.status < QUEST_STATUS_FINISHED)) { - add_hook(HOOK_DROP, quest_poison_drop_hook, "poison_drop"); - add_hook(HOOK_WILD_GEN, quest_poison_gen_hook, "poison_gen"); - add_hook(HOOK_QUEST_FINISH, quest_poison_finish_hook, "poison_finish"); + add_hook (HOOK_DROP, quest_poison_drop_hook, "poison_drop"); + add_hook_new(HOOK_WILD_GEN, quest_poison_gen_hook, "poison_gen", NULL); + add_hook (HOOK_QUEST_FINISH, quest_poison_finish_hook, "poison_finish"); } if (cquest.status < QUEST_STATUS_COMPLETED) { |