diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-19 01:08:57 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:54 +0100 |
commit | f27d61944eba70b619a8ab31f4dba10f8e874a94 (patch) | |
tree | ec5041cd385d0ae940d48f21e65cae0ff4c9cafe /src/q_rand.cc | |
parent | 0ff3645a99ce2ba66e8309c0d34d7a7b2ad5ef51 (diff) |
Update HOOK_{LEVEL_REGEN,NEW_LEVEL} to new-style hook
Diffstat (limited to 'src/q_rand.cc')
-rw-r--r-- | src/q_rand.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/q_rand.cc b/src/q_rand.cc index 33764f88..290301d9 100644 --- a/src/q_rand.cc +++ b/src/q_rand.cc @@ -399,7 +399,7 @@ static bool_ quest_random_death_hook(void *, void *in_, void *) return (FALSE); } -static bool_ quest_random_turn_hook(const char *fmt) +static bool_ quest_random_turn_hook(void *, void *, void *) { quest[QUEST_RANDOM].data[0] = 0; quest[QUEST_RANDOM].data[1] = 0; @@ -617,8 +617,8 @@ bool_ quest_random_describe(FILE *fff) bool_ quest_random_init_hook(int q_idx) { add_hook_new(HOOK_MONSTER_DEATH, quest_random_death_hook, "rand_death", NULL); - add_hook (HOOK_NEW_LEVEL, quest_random_turn_hook, "rand_new_lvl"); - add_hook (HOOK_LEVEL_REGEN, quest_random_turn_hook, "rand_regen_lvl"); + add_hook_new(HOOK_NEW_LEVEL, quest_random_turn_hook, "rand_new_lvl", NULL); + add_hook_new(HOOK_LEVEL_REGEN, quest_random_turn_hook, "rand_regen_lvl", NULL); add_hook (HOOK_LEVEL_END_GEN, quest_random_gen_hero_hook, "rand_gen_hero"); add_hook (HOOK_BUILD_ROOM1, quest_random_gen_hook, "rand_gen"); add_hook_new(HOOK_FEELING, quest_random_feeling_hook, "rand_feel", NULL); |