diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-19 01:26:51 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:54 +0100 |
commit | 5633ea7c94d1f2eec8b712071548d0879b315ac6 (patch) | |
tree | 0a554abb3d18d74e09ee89687c7324e29b377eb0 | |
parent | e6c73d8eb175fe69a6a8d341cbbc35b8873e1ed9 (diff) |
Update HOOK_GET to new-style hook
-rw-r--r-- | src/q_fireprof.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/q_fireprof.cc b/src/q_fireprof.cc index 9e5335a3..ee5fc6bc 100644 --- a/src/q_fireprof.cc +++ b/src/q_fireprof.cc @@ -382,9 +382,10 @@ void quest_fireproof_building(bool_ *paid, bool_ *recreate) } } -static bool_ fireproof_get_hook(const char *fmt) +static bool_ fireproof_get_hook(void *, void *in_, void *) { - object_type *o_ptr = get_next_arg_obj(); + struct hook_get_in *in = static_cast<struct hook_get_in *>(in_); + object_type *o_ptr = in->o_ptr; /* check that player is in the quest, haven't picked up the * item already, and check that it's the real item and not another one @@ -579,8 +580,8 @@ bool_ quest_fireproof_init_hook(int q) if ((cquest.status >= QUEST_STATUS_UNTAKEN) && (cquest.status < QUEST_STATUS_FINISHED)) { - add_hook_new(HOOK_GEN_QUEST, fireproof_gen_hook , "fireproof_gen_hook", NULL); - add_hook (HOOK_GET , fireproof_get_hook , "fireproof_get_hook"); + add_hook_new(HOOK_GEN_QUEST, fireproof_gen_hook , "fireproof_gen_hook", NULL); + add_hook_new(HOOK_GET , fireproof_get_hook , "fireproof_get_hook", NULL); add_hook_new(HOOK_STAIR , fireproof_stair_hook, "fireproof_stair_hook", NULL); } |