diff options
-rw-r--r-- | src/cmd7.cc | 4 | ||||
-rw-r--r-- | src/dungeon.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd7.cc b/src/cmd7.cc index 25b8eb96..5f39ff0f 100644 --- a/src/cmd7.cc +++ b/src/cmd7.cc @@ -817,7 +817,7 @@ void do_cmd_mimic_lore() p_ptr->update |= (PU_BONUS); } -static bool_ mimic_forbid_travel(const char *fmt) +static bool_ mimic_forbid_travel(void *, void *, void *) { u32b value = p_ptr->mimic_extra >> 16; u32b att = p_ptr->mimic_extra & 0xFFFF; @@ -850,7 +850,7 @@ void do_cmd_mimic(void) static bool_ added_hooks = FALSE; if(!added_hooks) { - add_hook(HOOK_FORBID_TRAVEL, mimic_forbid_travel, "mimic_forbid_travel"); + add_hook_new(HOOK_FORBID_TRAVEL, mimic_forbid_travel, "mimic_forbid_travel", NULL); added_hooks = TRUE; } diff --git a/src/dungeon.cc b/src/dungeon.cc index 4e792266..19d9907f 100644 --- a/src/dungeon.cc +++ b/src/dungeon.cc @@ -3727,7 +3727,7 @@ static void process_command(void) msg_print("To flee the ambush you have to reach the edge of the map."); } /* TODO: make the above stuff use this hook */ - else if (!process_hooks(HOOK_FORBID_TRAVEL, "()")) + else if (!process_hooks_new(HOOK_FORBID_TRAVEL, NULL, NULL)) { p_ptr->oldpx = p_ptr->px; p_ptr->oldpy = p_ptr->py; |