diff options
author | Bardur Arantsson <bardur@scientician.net> | 2014-12-21 15:53:16 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2014-12-23 12:07:56 +0100 |
commit | 9404aadb7e1e53b6d75cf52f41b54b48067d7a04 (patch) | |
tree | adced03e9153e022978be4d08df9a821e27cff31 | |
parent | 935809965a29657b55ca03e6be09b55fbd3abe13 (diff) |
Remove old-style HOOK_EAT invocation
-rw-r--r-- | src/cmd6.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cmd6.cc b/src/cmd6.cc index 05d87564..ba32f9e8 100644 --- a/src/cmd6.cc +++ b/src/cmd6.cc @@ -968,12 +968,7 @@ void do_cmd_eat_food(void) /* Scripted foods */ hook_eat_in in = { o_ptr }; hook_eat_out out = { FALSE }; - - if (process_hooks_ret(HOOK_EAT, "d", "(O)", o_ptr)) - { - ident = process_hooks_return[0].num; - } - else if (process_hooks_new(HOOK_EAT, &in, &out)) + if (process_hooks_new(HOOK_EAT, &in, &out)) { ident = out.ident; } |