summaryrefslogtreecommitdiff
path: root/src/q_haunted.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-12-19 01:02:33 +0100
committerBardur Arantsson <bardur@scientician.net>2014-12-23 12:07:54 +0100
commit0ff3645a99ce2ba66e8309c0d34d7a7b2ad5ef51 (patch)
tree5ecec4265dbc78ed514843d4cc9b6f8b3c85ba97 /src/q_haunted.cc
parent5404247f5adcb64a67bedf8b6442c023c3802a8f (diff)
Update HOOK_MONSTER_DEATH to new-style hook
Diffstat (limited to 'src/q_haunted.cc')
-rw-r--r--src/q_haunted.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/q_haunted.cc b/src/q_haunted.cc
index a57e8656..9af5f48f 100644
--- a/src/q_haunted.cc
+++ b/src/q_haunted.cc
@@ -88,7 +88,7 @@ static bool_ quest_haunted_gen_hook(void *, void *, void *)
return TRUE;
}
-static bool_ quest_haunted_death_hook(const char *fmt)
+static bool_ quest_haunted_death_hook(void *, void *, void *)
{
int i, mcnt = 0;
@@ -110,7 +110,8 @@ static bool_ quest_haunted_death_hook(const char *fmt)
if (mcnt <= 1)
{
quest[p_ptr->inside_quest].status = QUEST_STATUS_COMPLETED;
- del_hook (HOOK_MONSTER_DEATH, quest_haunted_death_hook);
+
+ del_hook_new(HOOK_MONSTER_DEATH, quest_haunted_death_hook);
del_hook_new(HOOK_GEN_QUEST, quest_haunted_gen_hook);
process_hooks_restart = TRUE;
@@ -141,7 +142,7 @@ bool_ quest_haunted_init_hook(int q_idx)
{
if ((cquest.status >= QUEST_STATUS_UNTAKEN) && (cquest.status < QUEST_STATUS_FINISHED))
{
- add_hook (HOOK_MONSTER_DEATH, quest_haunted_death_hook, "haunted_monster_death");
+ add_hook_new(HOOK_MONSTER_DEATH, quest_haunted_death_hook, "haunted_monster_death", NULL);
add_hook (HOOK_QUEST_FINISH, quest_haunted_finish_hook, "haunted_finish");
add_hook_new(HOOK_GEN_QUEST, quest_haunted_gen_hook, "haunted_geb", NULL);
}