diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-21 14:49:23 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:55 +0100 |
commit | f2b09902812117053035d61b43c3baaa880bc8e4 (patch) | |
tree | 9981e98fcc740e76f2e136fa66d9bc42e4b60032 | |
parent | e4e6bc690bb319a2fb1ddca60a1e9fb7b5f89a81 (diff) |
Update HOOK_DIE to new-style hook
-rw-r--r-- | src/dungeon.cc | 2 | ||||
-rw-r--r-- | src/q_one.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/dungeon.cc b/src/dungeon.cc index 49d56288..689998f2 100644 --- a/src/dungeon.cc +++ b/src/dungeon.cc @@ -5686,7 +5686,7 @@ void play_game(bool_ new_game) cheat_death = FALSE; /* Can we die ? please let us die ! */ - if (process_hooks(HOOK_DIE, "()")) + if (process_hooks_new(HOOK_DIE, NULL, NULL)) { cheat_death = TRUE; } diff --git a/src/q_one.cc b/src/q_one.cc index f7994c8a..c36086df 100644 --- a/src/q_one.cc +++ b/src/q_one.cc @@ -169,7 +169,7 @@ static bool_ quest_one_hp_hook(void *, void *in_, void *out_) return (FALSE); } -static bool_ quest_one_die_hook(const char *fmt) +static bool_ quest_one_die_hook(void *, void *, void *) { if (cquest.status == QUEST_STATUS_FAILED_DONE) { @@ -349,7 +349,7 @@ bool_ quest_one_init_hook(int q_idx) add_hook_new(HOOK_MOVE, quest_one_move_hook, "one_move", NULL); } add_hook_new(HOOK_CHAR_DUMP, quest_one_dump_hook, "one_dump", NULL); - add_hook_new(HOOK_CALC_HP, quest_one_hp_hook, "one_hp", NULL); - add_hook (HOOK_DIE, quest_one_die_hook, "one_die"); + add_hook_new(HOOK_CALC_HP, quest_one_hp_hook, "one_hp", NULL); + add_hook_new(HOOK_DIE, quest_one_die_hook, "one_die", NULL); return (FALSE); } |