diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-19 00:01:58 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:54 +0100 |
commit | 7e96b9af38f3fb415a9c0326046b3cb2295c2687 (patch) | |
tree | a7b138dfec1216490b403d6a876c53a7178be823 | |
parent | d0abfa2e636e139d25b178457b8dc7f5b007104d (diff) |
Update HOOK_BIRTH_OBJECTS to new-style hook
-rw-r--r-- | src/birth.cc | 2 | ||||
-rw-r--r-- | 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; } |