From 7e96b9af38f3fb415a9c0326046b3cb2295c2687 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 19 Dec 2014 00:01:58 +0100 Subject: Update HOOK_BIRTH_OBJECTS to new-style hook --- src/birth.cc | 2 +- src/q_god.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/birth.cc b/src/birth.cc index cc42f758..d09e8754 100644 --- a/src/birth.cc +++ b/src/birth.cc @@ -1238,7 +1238,7 @@ static void player_outfit(void) player_gain_corruption(CORRUPT_VAMPIRE_VAMPIRE); } - process_hooks(HOOK_BIRTH_OBJECTS, "()"); + process_hooks_new(HOOK_BIRTH_OBJECTS, NULL, NULL); meta_inertia_control_hook_birth_objects(); { diff --git a/src/q_god.cc b/src/q_god.cc index 028e8fdb..a6fd9918 100644 --- a/src/q_god.cc +++ b/src/q_god.cc @@ -1158,7 +1158,7 @@ static bool_ quest_god_stair_hook(void *, void *, void *) return FALSE; } -static bool_ quest_god_birth_objects_hook(const char *fmt) +static bool_ quest_god_birth_objects_hook(void *, void *, void *) { cquest_quests_given = 0; cquest_relics_found = 0; @@ -1188,7 +1188,7 @@ bool_ quest_god_init_hook(int q) /* Need this to re-initialize at birth; the quest data is * zeroed which isn't quite right. */ - add_hook(HOOK_BIRTH_OBJECTS, quest_god_birth_objects_hook, "q_god_birth_objects"); + add_hook_new(HOOK_BIRTH_OBJECTS, quest_god_birth_objects_hook, "q_god_birth_objects", NULL); return FALSE; } -- cgit v1.2.3