diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-18 20:38:17 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:54 +0100 |
commit | 9a10050acb1c6398eedfe9c20611ac31f17802d5 (patch) | |
tree | 7ab66b6577b1175cd6991ea071d2d5c6ab4c3618 /src/melee2.cc | |
parent | dd5f6f4691b9975c7087a9bb6f92befd59e5d795 (diff) |
Update HOOK_MON_SPEAK to new-style hook
Diffstat (limited to 'src/melee2.cc')
-rw-r--r-- | src/melee2.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/melee2.cc b/src/melee2.cc index f35e1e80..d4f2e9ff 100644 --- a/src/melee2.cc +++ b/src/melee2.cc @@ -6423,7 +6423,8 @@ static void process_monster(int m_idx, bool_ is_frien) /* Try for the unique's lines in "monspeak.txt" first. */ /* 0 is SUCCESS, of course.... */ - if (!process_hooks(HOOK_MON_SPEAK, "(d,s)", m_idx, m_name)) + struct hook_mon_speak_in in = { m_idx, m_name }; + if (!process_hooks_new(HOOK_MON_SPEAK, &in, NULL)) { if (get_xtra_line("monspeak.txt", m_ptr, monmessage) != 0) { |