diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-18 23:56:35 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:54 +0100 |
commit | d0abfa2e636e139d25b178457b8dc7f5b007104d (patch) | |
tree | aab638bc0f2c3a03c08ecb890ab8ae67e0584e63 /src/bldg.cc | |
parent | 752611806d109d182227c22354bd380899ba5d67 (diff) |
Update HOOK_INIT_QUEST to new-style hook
Diffstat (limited to 'src/bldg.cc')
-rw-r--r-- | src/bldg.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bldg.cc b/src/bldg.cc index 17899fc9..d048498c 100644 --- a/src/bldg.cc +++ b/src/bldg.cc @@ -865,7 +865,11 @@ static bool_ castle_quest(int y, int x) /* No quest yet */ else if (q_ptr->status == QUEST_STATUS_UNTAKEN) { - if (process_hooks(HOOK_INIT_QUEST, "(d)", plots[plot])) return (FALSE); + struct hook_init_quest_in in = { plots[plot] }; + if (process_hooks_new(HOOK_INIT_QUEST, &in, NULL)) + { + return (FALSE); + } q_ptr->status = QUEST_STATUS_TAKEN; |