summaryrefslogtreecommitdiff
path: root/src/q_library.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_library.cc
parent5404247f5adcb64a67bedf8b6442c023c3802a8f (diff)
Update HOOK_MONSTER_DEATH to new-style hook
Diffstat (limited to 'src/q_library.cc')
-rw-r--r--src/q_library.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/q_library.cc b/src/q_library.cc
index c3305ea9..e415edb1 100644
--- a/src/q_library.cc
+++ b/src/q_library.cc
@@ -377,7 +377,7 @@ static bool_ quest_library_stair_hook(void *, void *, void *)
}
}
-static bool_ quest_library_monster_death_hook(const char *fmt)
+static bool_ quest_library_monster_death_hook(void *, void *, void *)
{
int i, count = -1;
@@ -494,9 +494,9 @@ bool_ quest_library_init_hook(int q)
if ((cquest.status >= QUEST_STATUS_UNTAKEN) &&
(cquest.status < QUEST_STATUS_FINISHED))
{
- add_hook_new(HOOK_GEN_QUEST , quest_library_gen_hook , "library_gen_hook", NULL);
- add_hook_new(HOOK_STAIR , quest_library_stair_hook , "library_stair_hook", NULL);
- add_hook (HOOK_MONSTER_DEATH, quest_library_monster_death_hook, "library_monster_death_hook");
+ add_hook_new(HOOK_GEN_QUEST , quest_library_gen_hook , "library_gen_hook", NULL);
+ add_hook_new(HOOK_STAIR , quest_library_stair_hook , "library_stair_hook", NULL);
+ add_hook_new(HOOK_MONSTER_DEATH, quest_library_monster_death_hook, "library_monster_death_hook", NULL);
}
/* If quest was rewarded we need to initialize the real player's spellbook. */